commit 6c652eae0a95cae095f5adad9cc51e1f1a183245 Author: teor teor@torproject.org Date: Wed Feb 20 00:40:18 2019 +1000
fixup! test_dir: Refactor common code out of the dir_format unit tests --- src/test/test_dir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/test/test_dir.c b/src/test/test_dir.c index 210b09a4e..31471fb7d 100644 --- a/src/test/test_dir.c +++ b/src/test/test_dir.c @@ -355,8 +355,9 @@ get_new_rsa_key_block(const char *key_name, crypto_pk_t *pk1) "%s\n%s", key_name, pk1_str); - tor_assert(block); + tor_free(pk1_str);
+ tor_assert(block); return block; }
tor-commits@lists.torproject.org