]> granicus.if.org Git - p11-kit/commitdiff
trust: Fix leak in trust list command
authorStef Walter <stef@thewalter.net>
Fri, 8 Aug 2014 15:20:08 +0000 (17:20 +0200)
committerStef Walter <stef@thewalter.net>
Fri, 8 Aug 2014 16:44:20 +0000 (18:44 +0200)
trust/list.c

index 1cb9d3f233c813fecaa0bb771d90553c405a7522..7ee49266be37bd7964318acac269a55e6c54cfbd 100644 (file)
@@ -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)