From d27d3db19f4aa9e6c3cef460731a663d6d0a62ae Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sat, 2 Jul 2022 11:55:50 +0300 Subject: [PATCH] snd_xmp.c: add missing Hunk_Free to xmp_load_module_from_memory failure --- Quake/snd_xmp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Quake/snd_xmp.c b/Quake/snd_xmp.c index 624716a5..d73149db 100644 --- a/Quake/snd_xmp.c +++ b/Quake/snd_xmp.c @@ -93,6 +93,7 @@ static qboolean S_XMP_CodecOpenStream (snd_stream_t *stream) moddata = (byte *) Hunk_Alloc(len); FS_fread(moddata, 1, len, &stream->fh); if (xmp_load_module_from_memory(c, moddata, len) < 0) { + Hunk_FreeToLowMark(mark); Con_DPrintf("Could not load module %s\n", stream->name); goto err1; }