From a35cc9be7a34e4fd012b0fa25a7091acf044a038 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 8 Aug 2014 17:20:08 +0200 Subject: trust: Fix leak in trust list command --- trust/list.c | 1 + 1 file changed, 1 insertion(+) (limited to 'trust') 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) -- cgit v1.1