aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_x509.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-09-04 14:37:42 -0400
committerNick Mathewson <nickm@torproject.org>2018-09-04 14:52:35 -0400
commit274efb126324f3f8a7e98b15a697c0038a9803d0 (patch)
tree06b7ab7f8442c1885b39bbb571d0d59b99a00b61 /src/test/test_x509.c
parentad94d43fc50525e8814b6e99f78d4b9635fa80ca (diff)
downloadtor-274efb126324f3f8a7e98b15a697c0038a9803d0.tar.gz
tor-274efb126324f3f8a7e98b15a697c0038a9803d0.zip
Use FREE_AND_NULL for impl types
Diffstat (limited to 'src/test/test_x509.c')
-rw-r--r--src/test/test_x509.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/test_x509.c b/src/test/test_x509.c
index 9163977bd8..9ec0657d83 100644
--- a/src/test/test_x509.c
+++ b/src/test/test_x509.c
@@ -57,8 +57,7 @@ test_x509_cert_new_failing_digest(void *arg)
done:
crypto_pk_free(pk1);
crypto_pk_free(pk2);
- if (impl)
- tor_x509_cert_impl_free_(impl);
+ tor_x509_cert_impl_free(impl);
UNMOCK(crypto_digest);
teardown_capture_of_logs();
}