mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 02:22:57 +01:00
#3260: Memory leak in EVPPKey::loadKey used with files & wrong password
This commit is contained in:
parent
aa32399e26
commit
f5de69b854
@ -195,9 +195,10 @@ private:
|
|||||||
poco_assert_dbg (typeid(K*) == typeid(EVP_PKEY*));
|
poco_assert_dbg (typeid(K*) == typeid(EVP_PKEY*));
|
||||||
*ppKey = (K*)pKey;
|
*ppKey = (K*)pKey;
|
||||||
}
|
}
|
||||||
if(!*ppKey) goto error;
|
if (!*ppKey) goto error;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (getFunc) EVP_PKEY_free(pKey);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user