Explorar el Código

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

teor hace 6 años
padre
commit
6c652eae0a
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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",
                "%s\n%s",
                key_name,
                key_name,
                pk1_str);
                pk1_str);
-  tor_assert(block);
+  tor_free(pk1_str);
 
 
+  tor_assert(block);
   return block;
   return block;
 }
 }