mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-26 12:47:37 +00:00
(libretro-common) Fix resource leak
This commit is contained in:
parent
21ddee6690
commit
31bf313a4f
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user