mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
(CDROM) Fix memory leak caught with asan - buf passed to filestream_read_file
was not being freed after we were done with it (we are done with it after iterating over the string list)
This commit is contained in:
parent
5e13851a7a
commit
c570e657c1
@ -1416,6 +1416,7 @@ struct string_list* cdrom_get_available_drives(void)
|
||||
}
|
||||
}
|
||||
string_list_deinitialize(&mods);
|
||||
free(buf);
|
||||
|
||||
#ifdef CDROM_DEBUG
|
||||
if (found)
|
||||
|
Loading…
x
Reference in New Issue
Block a user