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/index.c | |
parent | b7cc29a78c3c705374ff25223fe14749ddb076b9 (diff) | |
download | p11-kit-b14fc0351c4dd71c5ca71df77e325d2b2a4c0583.tar.gz |
Fix various memory leaks exposed by 'make leakcheck'
Diffstat (limited to 'trust/index.c')
-rw-r--r-- | trust/index.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trust/index.c b/trust/index.c index 83f0dc0..83a4503 100644 --- a/trust/index.c +++ b/trust/index.c @@ -352,6 +352,7 @@ index_build (p11_index *index, count = nmerge; memcpy (built, merge, sizeof (CK_ATTRIBUTE) * nmerge); + p11_array_push (stack, merge); merge_attrs (built, &count, *attrs, nattrs, stack); merge_attrs (built, &count, extra, nextra, stack); @@ -367,7 +368,6 @@ index_build (p11_index *index, free (stack->elem[i]); *attrs = built; } else { - p11_attrs_free (merge); p11_attrs_free (extra); free (built); } |