]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
gnutls-cli-debug: eliminated memory leaks
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 23 Sep 2017 09:13:31 +0000 (11:13 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 24 Sep 2017 10:29:53 +0000 (10:29 +0000)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
src/tests.c

index c39cae1353ce06dfbc5c668cb831f68ae930afee..b033b5126179948221157c3e97811c7d32b5de19 100644 (file)
@@ -1410,6 +1410,7 @@ test_code_t test_chain_order(gnutls_session_t session)
                t.data = NULL;
                ret = gnutls_pem_base64_encode_alloc("CERTIFICATE", &cert_list[i], &t);
                if (ret < 0) {
+                       free(p);
                        return TEST_FAILED;
                }