From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Thu, 5 Oct 2023 08:39:22 +0000 (+0100) Subject: Deallocate settings strings on exit. X-Git-Tag: 4.3.2^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3db689f9e8205143bced74f3d3c086887f2dd219;p=thirdparty%2Fshairport-sync.git Deallocate settings strings on exit. --- diff --git a/audio_pa.c b/audio_pa.c index 6982c8fb..c0fe1bd2 100644 --- a/audio_pa.c +++ b/audio_pa.c @@ -244,6 +244,14 @@ static void deinit(void) { pa_stream_disconnect(stream); pa_threaded_mainloop_stop(mainloop); pa_threaded_mainloop_free(mainloop); + if (config.pa_server) + free(config.pa_server); + if (config.pa_application_name) + free(config.pa_application_name); + if (config.pa_sink) + free(config.pa_sink); + config.pa_server = config.pa_application_name = config.pa_sink = NULL; + // debug(1, "pa deinit done"); }