msvcrt: Free the temporary filename (Coverity).

Signed-off-by: Marcus Meissner <marcus@jet.franken.de>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Marcus Meissner 2017-06-20 09:08:39 +02:00 committed by Alexandre Julliard
parent 960d534278
commit d3d43ffded

View File

@ -4989,6 +4989,7 @@ MSVCRT_FILE* CDECL MSVCRT_tmpfile(void)
if(fd != -1 && !file) if(fd != -1 && !file)
MSVCRT__close(fd); MSVCRT__close(fd);
MSVCRT_free(filename);
UNLOCK_FILES(); UNLOCK_FILES();
return file; return file;
} }