Module: wine Branch: master Commit: 32e65acc007a03b61d379874d10f4809a5b66f64 URL: https://source.winehq.org/git/wine.git/?a=commit;h=32e65acc007a03b61d379874d...
Author: Michał Janiszewski janisozaur@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@gmail.com Signed-off-by: Piotr Caban piotr@codeweavers.com Signed-off-by: Alexandre Julliard julliard@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; } }