[PATCH] advapi32: removed a double free issue on loop termination (Coverity)
Marcus Meissner
marcus at jet.franken.de
Wed Oct 10 03:00:17 CDT 2012
Hi,
After the end of the loop LocalFree() could be called a second time
on the same pointer.
Ciao, Marcus
---
dlls/advapi32/tests/crypt.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/dlls/advapi32/tests/crypt.c b/dlls/advapi32/tests/crypt.c
index 7abf90b..4820d27 100644
--- a/dlls/advapi32/tests/crypt.c
+++ b/dlls/advapi32/tests/crypt.c
@@ -624,9 +624,6 @@ static BOOL FindProvTypesRegVals(DWORD *pdwIndex, DWORD *pdwProvType, LPSTR *psz
(*pdwIndex)++;
}
-
- if (!ret)
- LocalFree(*pszTypeName);
RegCloseKey(hSubKey);
LocalFree(szName);
--
1.7.3.4
More information about the wine-patches
mailing list