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

index 1ed26eb6922cdebe2bc1258b0a35cfeafe159a5a..47b80d888154808ce8a954f1a3e364b285cfe1b9 100644 (file)
@@ -684,6 +684,7 @@ on_index_store (void *data,
 
        if (file == NULL) {
                free (origin);
+               free (other);
                return CKR_GENERAL_ERROR;
        }