[PATCH libksba 5/7] Fix memory leak in crl parsing code.

Dmitry Eremin-Solenikov dbaryshkov at gmail.com
Sat Jul 12 13:11:17 CEST 2014


* src/crl.c (store_one_entry_extension): Free memory at oid variable -
  otherwise libksba leaks memory on crl parsing.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>
---
 src/crl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/crl.c b/src/crl.c
index a4b1776..3ed862e 100644
--- a/src/crl.c
+++ b/src/crl.c
@@ -1150,6 +1150,8 @@ store_one_entry_extension (ksba_crl_t crl,
   else if (critical)
     err = gpg_error (GPG_ERR_UNKNOWN_CRIT_EXTN);
 
+  xfree(oid);
+
   return err;
 }
 
-- 
2.0.0




More information about the Gnupg-devel mailing list