Commit b85492e8 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Free memory on an error path.

parent 1dce5ed3
......@@ -567,7 +567,11 @@ BOOL WINAPI CryptGetDefaultOIDFunctionAddress(HCRYPTOIDFUNCSET hFuncSet,
*phFuncAddr = addr;
}
else
{
CryptFreeOIDFunctionAddress(*phFuncAddr, 0);
SetLastError(ERROR_FILE_NOT_FOUND);
*phFuncAddr = NULL;
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment