From 9204771c3a759dcdf194679af29b70e458ba7ed4 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 31 May 2020 00:37:23 +1000 Subject: [PATCH] Fix a potential memory leak with wavefront sounds --- snd_wav.c | 1 + 1 file changed, 1 insertion(+) diff --git a/snd_wav.c b/snd_wav.c index 6f861913..b4d014b3 100644 --- a/snd_wav.c +++ b/snd_wav.c @@ -344,5 +344,6 @@ qboolean S_LoadWavFile (const char *filename, sfx_t *sfx) sfx->loopstart = min(sfx->loopstart, sfx->total_length); sfx->flags &= ~SFXFLAG_STREAMED; + Mem_Free(data); // we already got a copy of this in fetcher_data return true; } -- 2.39.2