(libretro-common) Fix resource leak

This commit is contained in:
twinaphex 2017-02-21 20:25:25 +01:00
parent 21ddee6690
commit 31bf313a4f

View File

@ -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)) if (!filestream_read_file(path, &chunk->buf, &chunk->len))
{ {
printf("Could not open WAV file for reading.\n"); printf("Could not open WAV file for reading.\n");
free(chunk);
return NULL; return NULL;
} }