Juan Lang : crypt32: Free memory on an error path.
Module: wine Branch: master Commit: b85492e851810d66e023d75eb24fd533e4406876 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b85492e851810d66e023d75eb2... Author: Juan Lang <juan.lang(a)gmail.com> Date: Thu Oct 18 21:52:06 2007 -0700 crypt32: Free memory on an error path. --- dlls/crypt32/oid.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/dlls/crypt32/oid.c b/dlls/crypt32/oid.c index ccc4f68..c35554f 100644 --- a/dlls/crypt32/oid.c +++ b/dlls/crypt32/oid.c @@ -567,7 +567,11 @@ BOOL WINAPI CryptGetDefaultOIDFunctionAddress(HCRYPTOIDFUNCSET hFuncSet, *phFuncAddr = addr; } else + { + CryptFreeOIDFunctionAddress(*phFuncAddr, 0); SetLastError(ERROR_FILE_NOT_FOUND); + *phFuncAddr = NULL; + } } } }
participants (1)
-
Alexandre Julliard