From e2f9c7d54f20219da5d75a58196f21659774cafa Mon Sep 17 00:00:00 2001 From: rl1987 Date: Sat, 24 Oct 2015 16:21:35 +0300 Subject: Avoid crashing due to double-freeing memory. --- src/test/test_tortls.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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); -- cgit v1.2.3-54-g00ecf