diff options
author | Stef Walter <stef@thewalter.net> | 2013-07-23 16:45:50 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2013-07-23 23:06:30 +0200 |
commit | b14fc0351c4dd71c5ca71df77e325d2b2a4c0583 (patch) | |
tree | c4a47c77a977158b8bd4dcc8f478d6bc34ad233b /trust/asn1.c | |
parent | b7cc29a78c3c705374ff25223fe14749ddb076b9 (diff) |
Fix various memory leaks exposed by 'make leakcheck'
Diffstat (limited to 'trust/asn1.c')
-rw-r--r-- | trust/asn1.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |