mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Avoid crashing due to double-freeing memory.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user