crypt32: Free memory on an error path.

This commit is contained in:
Juan Lang 2007-10-18 21:52:06 -07:00 committed by Alexandre Julliard
parent 1dce5ed3b0
commit b85492e851
1 changed files with 4 additions and 0 deletions

View File

@ -567,7 +567,11 @@ BOOL WINAPI CryptGetDefaultOIDFunctionAddress(HCRYPTOIDFUNCSET hFuncSet,
*phFuncAddr = addr;
}
else
{
CryptFreeOIDFunctionAddress(*phFuncAddr, 0);
SetLastError(ERROR_FILE_NOT_FOUND);
*phFuncAddr = NULL;
}
}
}
}