diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-04-26 12:16:12 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-04-26 12:16:12 -0400 |
commit | 97664cfd2a83ec79dda7f697054e27daa726ea9d (patch) | |
tree | 4b9b448fbacff458a33724ba647331e92979a32c /src/test | |
parent | b60782b6d66de0853320e9a76f0dd9e25e0ec142 (diff) | |
download | tor-97664cfd2a83ec79dda7f697054e27daa726ea9d.tar.gz tor-97664cfd2a83ec79dda7f697054e27daa726ea9d.zip |
Fix leaks in test_dir_formats
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_dir.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c index 9e01bdbd48..78583fc193 100644 --- a/src/test/test_dir.c +++ b/src/test/test_dir.c @@ -194,6 +194,7 @@ test_dir_formats(void) test_assert(crypto_pk_cmp_keys(rp1->onion_pkey, pk1) == 0); test_assert(crypto_pk_cmp_keys(rp1->identity_pkey, pk2) == 0); //test_assert(rp1->exit_policy == NULL); + tor_free(buf); strlcpy(buf2, "router Fred 10.3.2.1 9005 0 0\n" @@ -277,6 +278,8 @@ test_dir_formats(void) routerinfo_free(r1); if (r2) routerinfo_free(r2); + if (rp2) + routerinfo_free(rp2); tor_free(buf); tor_free(pk1_str); |