summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2015-10-24 16:21:35 +0300
committerrl1987 <rl1987@sdf.lonestar.org>2015-10-24 16:21:35 +0300
commite2f9c7d54f20219da5d75a58196f21659774cafa (patch)
tree0703aeb7c6373f27f8d01b3a9d9325cad56ae3fd
parent2929986049780bd28fb39ae8d0a67e703e5193ef (diff)
downloadtor-e2f9c7d54f20219da5d75a58196f21659774cafa.tar.gz
tor-e2f9c7d54f20219da5d75a58196f21659774cafa.zip
Avoid crashing due to double-freeing memory.
-rw-r--r--src/test/test_tortls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test_tortls.c b/src/test/test_tortls.c
index 944edc4459..280e7fa3b0 100644
--- a/src/test/test_tortls.c
+++ b/src/test/test_tortls.c
@@ -2864,6 +2864,7 @@ test_tortls_cert_new(void *ignored)
ret = tor_x509_cert_new(cert);
tt_assert(ret);
tor_x509_cert_free(ret);
+ ret = NULL;
#if 0
cert = read_cert_from(validCertString);