From 734f6d7e47a806d4f57e535979b1f71f986cf48b Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Wed, 15 Jul 2020 14:59:09 +0000 Subject: [PATCH] Fix a potential memory leak with wavefront sounds git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12822 d7cf8633-e32d-0410-b094-e92efae38249 --- 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