From 2c1ac7e98d07c5c7e86bea933920fd6a7d9a9dd8 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 14 Jan 2023 19:53:30 -0800 Subject: cache_audio: free jackbuf before exiting thread Technically fixes a leak, but it's benign since we're shutting down anyways. --- src/rmd_cache_audio.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/rmd_cache_audio.c b/src/rmd_cache_audio.c index 1fd21b7..6a1d9e5 100644 --- a/src/rmd_cache_audio.c +++ b/src/rmd_cache_audio.c @@ -102,6 +102,10 @@ void *rmdCacheAudioBuffer(ProgData *pdata) } } +#ifdef HAVE_LIBJACK + free(jackbuf); +#endif + fclose(pdata->cache_data->afp); pthread_exit(&errno); } -- cgit v1.2.3