diff options
author | Stef Walter <stef@thewalter.net> | 2014-08-08 17:20:08 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2014-08-08 18:44:20 +0200 |
commit | a35cc9be7a34e4fd012b0fa25a7091acf044a038 (patch) | |
tree | 634f33cea7a0129ff14c52093138f1f6df0aec4a | |
parent | cdf540cefd7e106bc4607584dfa153d847f1a2a9 (diff) |
trust: Fix leak in trust list command
-rw-r--r-- | trust/list.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/trust/list.c b/trust/list.c index 1cb9d3f..7ee4926 100644 --- a/trust/list.c +++ b/trust/list.c @@ -125,6 +125,7 @@ list_iterate (p11_enumerate *ex, if (attr && attr->pValue && attr->ulValueLen) { string = strndup (attr->pValue, attr->ulValueLen); printf (" label: %s\n", string); + free (string); } if (p11_attrs_find_bool (ex->attrs, CKA_X_DISTRUSTED, &val) && val) |