From d2c4562d5b561fa09b931dc83a861580fc4b004e Mon Sep 17 00:00:00 2001 From: Gregor Schneider Date: Tue, 11 Aug 2009 14:37:52 +0000 Subject: [PATCH] Free memory on error svn path=/trunk/; revision=42618 --- reactos/lib/sdk/crt/stdio/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/sdk/crt/stdio/file.c b/reactos/lib/sdk/crt/stdio/file.c index bcabc3247e7..d01e578895c 100644 --- a/reactos/lib/sdk/crt/stdio/file.c +++ b/reactos/lib/sdk/crt/stdio/file.c @@ -1489,7 +1489,7 @@ int CDECL _wopen(const wchar_t *path,int flags,...) free(patha); return retval; } - + free(patha); _dosmaperr(GetLastError()); return -1; }