mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-03 18:22:42 +00:00
Prevent leaks
This commit is contained in:
parent
4fd00ac146
commit
542f87bf55
@ -62,6 +62,7 @@
|
||||
#endif
|
||||
|
||||
#include <streams/file_stream.h>
|
||||
#include <string/stdstring.h>
|
||||
#include <memmap.h>
|
||||
#include <retro_miscellaneous.h>
|
||||
|
||||
@ -567,7 +568,7 @@ int filestream_close(RFILE *stream)
|
||||
if (!stream)
|
||||
goto error;
|
||||
|
||||
if (stream->ext)
|
||||
if (stream->ext && !string_is_empty(stream->ext))
|
||||
free(stream->ext);
|
||||
|
||||
#if defined(PSP)
|
||||
|
Loading…
x
Reference in New Issue
Block a user