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

This commit is contained in:
teor
2019-02-20 00:40:18 +10:00
parent 51f59f213e
commit 6c652eae0a
+2 -1
View File
@@ -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;
}