From b14fc0351c4dd71c5ca71df77e325d2b2a4c0583 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 23 Jul 2013 16:45:50 +0200 Subject: Fix various memory leaks exposed by 'make leakcheck' --- trust/asn1.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'trust/asn1.c') diff --git a/trust/asn1.c b/trust/asn1.c index 7ed3b01..dd1812d 100644 --- a/trust/asn1.c +++ b/trust/asn1.c @@ -327,8 +327,10 @@ p11_asn1_cache_take (p11_asn1_cache *cache, { asn1_item *item; - if (cache == NULL) + if (cache == NULL) { + asn1_delete_structure (&node); return; + } return_if_fail (struct_name != NULL); return_if_fail (der != NULL); -- cgit v1.1