[pkg-opensc-commit] [opensc] 145/295: Prevent leaking memory from PIV readers

Eric Dorland eric at moszumanska.debian.org
Sat Jun 24 21:11:25 UTC 2017


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository opensc.

commit b3f047619da5ade23577dc35a4974f24de148e67
Author: Jakub Jelen <jjelen at redhat.com>
Date:   Wed Jan 4 15:43:17 2017 +0100

    Prevent leaking memory from PIV readers
---
 src/libopensc/pkcs15-pubkey.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/libopensc/pkcs15-pubkey.c b/src/libopensc/pkcs15-pubkey.c
index 75a5782..abe00cd 100644
--- a/src/libopensc/pkcs15-pubkey.c
+++ b/src/libopensc/pkcs15-pubkey.c
@@ -1200,6 +1200,10 @@ sc_pkcs15_free_pubkey_info(sc_pkcs15_pubkey_info_t *info)
 {
 	if (info->subject.value)
 		free(info->subject.value);
+	if (info->direct.spki.value)
+		free(info->direct.spki.value);
+	if (info->direct.raw.value)
+		free(info->direct.raw.value);
 	sc_pkcs15_free_key_params(&info->params);
 	free(info);
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/opensc.git



More information about the pkg-opensc-commit mailing list