diff options
Diffstat (limited to 'trust')
-rw-r--r-- | trust/tests/frob-bc.c | 1 | ||||
-rw-r--r-- | trust/tests/frob-eku.c | 1 | ||||
-rw-r--r-- | trust/tests/frob-ext.c | 1 | ||||
-rw-r--r-- | trust/tests/frob-ku.c | 2 | ||||
-rw-r--r-- | trust/tests/frob-oid.c | 2 | ||||
-rw-r--r-- | trust/tests/test-token.c | 2 |
6 files changed, 8 insertions, 1 deletions
diff --git a/trust/tests/frob-bc.c b/trust/tests/frob-bc.c index 762f8c5..41fbc58 100644 --- a/trust/tests/frob-bc.c +++ b/trust/tests/frob-bc.c @@ -87,6 +87,7 @@ main (int argc, ret = asn1_der_coding (ext, "", buf, &len, message); if (ret != ASN1_SUCCESS) { fprintf (stderr, "asn1_der_coding: %s\n", message); + free (buf); return 1; } diff --git a/trust/tests/frob-eku.c b/trust/tests/frob-eku.c index 5cc5829..f467b36 100644 --- a/trust/tests/frob-eku.c +++ b/trust/tests/frob-eku.c @@ -88,6 +88,7 @@ main (int argc, ret = asn1_der_coding (ekus, "", buf, &len, message); if (ret != ASN1_SUCCESS) { fprintf (stderr, "asn1_der_coding: %s\n", message); + free (buf); return 1; } diff --git a/trust/tests/frob-ext.c b/trust/tests/frob-ext.c index b1b5dd5..2017205 100644 --- a/trust/tests/frob-ext.c +++ b/trust/tests/frob-ext.c @@ -104,6 +104,7 @@ main (int argc, ret = asn1_der_coding (ext, "", buf, &len, message); if (ret != ASN1_SUCCESS) { fprintf (stderr, "asn1_der_coding: %s\n", message); + free (buf); return 1; } diff --git a/trust/tests/frob-ku.c b/trust/tests/frob-ku.c index 00d45c6..99ac217 100644 --- a/trust/tests/frob-ku.c +++ b/trust/tests/frob-ku.c @@ -111,11 +111,13 @@ main (int argc, ret = asn1_der_coding (ku, "", buf, &len, message); if (ret != ASN1_SUCCESS) { fprintf (stderr, "asn1_der_coding: %s\n", message); + free (buf); return 1; } fwrite (buf, 1, len, stdout); fflush (stdout); + free (buf); asn1_delete_structure (&ku); asn1_delete_structure (&definitions); diff --git a/trust/tests/frob-oid.c b/trust/tests/frob-oid.c index b4c7658..5a2499a 100644 --- a/trust/tests/frob-oid.c +++ b/trust/tests/frob-oid.c @@ -87,11 +87,13 @@ main (int argc, ret = asn1_der_coding (oid, "", buf, &len, message); if (ret != ASN1_SUCCESS) { fprintf (stderr, "asn1_der_coding: %s\n", message); + free (buf); return 1; } fwrite (buf, 1, len, stdout); fflush (stdout); + free (buf); asn1_delete_structure (&oid); asn1_delete_structure (&definitions); diff --git a/trust/tests/test-token.c b/trust/tests/test-token.c index f4367c3..a24539e 100644 --- a/trust/tests/test-token.c +++ b/trust/tests/test-token.c @@ -91,8 +91,8 @@ static void teardown_temp (void *unused) { p11_test_directory_delete (test.directory); - free (test.directory); teardown (test.directory); + free (test.directory); } static void |