diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-10-21 16:01:29 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-10-21 16:01:29 -0400 |
commit | 5e9f2384cf0f97646d7ee1b9eccaab4dfe382536 (patch) | |
tree | 3dfcc13eca3649fc3a9a55cc915f1e7fb1f6fecc /src/test/test_tortls.c | |
parent | bebf6c6c676e9d8df73743b2619bda23a59c54df (diff) | |
download | tor-5e9f2384cf0f97646d7ee1b9eccaab4dfe382536.tar.gz tor-5e9f2384cf0f97646d7ee1b9eccaab4dfe382536.zip |
Fix various coverity-found issues
Diffstat (limited to 'src/test/test_tortls.c')
-rw-r--r-- | src/test/test_tortls.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test_tortls.c b/src/test/test_tortls.c index 4d92e1737d..944edc4459 100644 --- a/src/test/test_tortls.c +++ b/src/test/test_tortls.c @@ -663,7 +663,7 @@ test_tortls_cert_get_key(void *ignored) { (void)ignored; tor_x509_cert_t *cert = NULL; - crypto_pk_t *res; + crypto_pk_t *res = NULL; cert = tor_malloc_zero(sizeof(tor_x509_cert_t)); X509 *key = NULL; key = tor_malloc_zero(sizeof(X509)); @@ -684,6 +684,7 @@ test_tortls_cert_get_key(void *ignored) done: fake_x509_free(key); tor_free(cert); + crypto_pk_free(res); } #endif |