Marcus Meissner : msvcrt: Free the temporary filename (Coverity).

Alexandre Julliard julliard at winehq.org
Fri Oct 20 07:19:59 CDT 2017


Module: wine
Branch: stable
Commit: 47876de741048659911fc630d5acdedfdf99b969
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=47876de741048659911fc630d5acdedfdf99b969

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Tue Jun 20 09:08:39 2017 +0200

msvcrt: Free the temporary filename (Coverity).

Signed-off-by: Marcus Meissner <marcus at jet.franken.de>
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit d3d43ffdedcf765ecbd0ec160f384156069849bc)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/msvcrt/file.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/msvcrt/file.c b/dlls/msvcrt/file.c
index b1c66e5..51d2e23 100644
--- a/dlls/msvcrt/file.c
+++ b/dlls/msvcrt/file.c
@@ -4989,6 +4989,7 @@ MSVCRT_FILE* CDECL MSVCRT_tmpfile(void)
 
   if(fd != -1 && !file)
       MSVCRT__close(fd);
+  MSVCRT_free(filename);
   UNLOCK_FILES();
   return file;
 }




More information about the wine-cvs mailing list