Browse Source

fixup! test_dir: Refactor common code out of the dir_format unit tests

teor 5 years ago
parent
commit
6c652eae0a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/test/test_dir.c

+ 2 - 1
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;
 }