=?UTF-8?Q?Micha=C5=82=20Janiszewski=20?=: msvcrt: Don' t forget to free the buffer in scanf.

Alexandre Julliard julliard at winehq.org
Mon Jul 9 16:00:34 CDT 2018


Module: wine
Branch: master
Commit: 32e65acc007a03b61d379874d10f4809a5b66f64
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=32e65acc007a03b61d379874d10f4809a5b66f64

Author: Michał Janiszewski <janisozaur at gmail.com>
Date:   Sun Jul  1 23:51:23 2018 +0200

msvcrt: Don't forget to free the buffer in scanf.

Signed-off-by: Michał Janiszewski <janisozaur at gmail.com>
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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

diff --git a/dlls/msvcrt/scanf.h b/dlls/msvcrt/scanf.h
index cbbcae4..734fe8b 100644
--- a/dlls/msvcrt/scanf.h
+++ b/dlls/msvcrt/scanf.h
@@ -667,6 +667,7 @@ _FUNCTION_ {
                         else {
                             _UNLOCK_FILE_(file);
                             *str = 0;
+                            HeapFree(GetProcessHeap(), 0, Mask);
                             return rd;
                         }
                     }




More information about the wine-cvs mailing list