Fix filestream memory leak

This commit is contained in:
Twinaphex 2017-04-28 21:27:28 +02:00
parent 67ab87669f
commit 927ed42498

View File

@ -534,6 +534,9 @@ int filestream_close(RFILE *stream)
if (!stream)
goto error;
if (stream->ext)
free(stream->ext);
#if defined(PSP)
if (stream->fd > 0)
sceIoClose(stream->fd);