[pkg-opensc-commit] [engine-pkcs11] 28/152: fix memory leak, thanks to Dougles E. Engert.
Eric Dorland
eric at moszumanska.debian.org
Mon Oct 19 03:11:10 UTC 2015
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository engine-pkcs11.
commit d2e2226721e9e711548874fe92d193959a25899b
Author: Andreas Jellinghaus <andreas at ionisiert.de>
Date: Thu Nov 3 22:59:33 2005 +0000
fix memory leak, thanks to Dougles E. Engert.
---
src/engine_pkcs11.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/engine_pkcs11.c b/src/engine_pkcs11.c
index d8d05db..3d0bd07 100644
--- a/src/engine_pkcs11.c
+++ b/src/engine_pkcs11.c
@@ -126,6 +126,8 @@ int pkcs11_finish(ENGINE * engine)
{
if (ctx) {
PKCS11_CTX_unload(ctx);
+ PKCS11_CTX_free(ctx);
+ ctx = NULL;
}
if (pin != NULL) {
OPENSSL_cleanse(pin, strlen(pin));
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/engine-pkcs11.git
More information about the pkg-opensc-commit
mailing list