From 31bf313a4f15af43b7e869cffbfc1e5a3961b7a3 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 21 Feb 2017 20:25:25 +0100 Subject: [PATCH] (libretro-common) Fix resource leak --- libretro-common/audio/audio_mix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libretro-common/audio/audio_mix.c b/libretro-common/audio/audio_mix.c index 689d2a9dde..4b8b098558 100644 --- a/libretro-common/audio/audio_mix.c +++ b/libretro-common/audio/audio_mix.c @@ -118,6 +118,7 @@ audio_chunk_t* audio_mix_load_wav_file(const char *path, int sample_rate) if (!filestream_read_file(path, &chunk->buf, &chunk->len)) { printf("Could not open WAV file for reading.\n"); + free(chunk); return NULL; }