(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:
libretroadmin 2022-07-15 19:00:59 +02:00
parent 5e13851a7a
commit c570e657c1

View File

@ -1416,6 +1416,7 @@ struct string_list* cdrom_get_available_drives(void)
}
}
string_list_deinitialize(&mods);
free(buf);
#ifdef CDROM_DEBUG
if (found)