diff options
author | Stef Walter <stef@thewalter.net> | 2014-08-08 17:20:08 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2014-08-08 17:21:22 +0200 |
commit | 46cb35baaae90e62367dd0b4265e3f6e39453e62 (patch) | |
tree | 363c48a6ae6c42aed549b8175aaca06198bce0d7 | |
parent | 8f05e4f41ed3758488306ded1cc6f40086189e31 (diff) | |
download | p11-kit-46cb35baaae90e62367dd0b4265e3f6e39453e62.tar.gz |
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) |