tests: Replace ssh_string_free() with SSH_STRING_FREE()

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit ca7da823c3)
This commit is contained in:
Anderson Toshiyuki Sasaki
2018-09-24 18:56:22 +02:00
committed by Andreas Schneider
parent d56c8fdfc6
commit ee034e0484
4 changed files with 10 additions and 10 deletions

View File

@@ -111,7 +111,7 @@ static void torture_pubkey_from_file(void **state) {
assert_true(rc == 0);
ssh_string_free(pubkey);
SSH_STRING_FREE(pubkey);
/* test if it returns 1 if pubkey doesn't exist */
unlink(LIBSSH_RSA_TESTKEY ".pub");
@@ -210,8 +210,8 @@ static void torture_pubkey_generate_from_privkey(void **state) {
assert_string_equal(pubkey_line_orig, pubkey_line_new);
ssh_string_free(pubkey_orig);
ssh_string_free(pubkey_new);
SSH_STRING_FREE(pubkey_orig);
SSH_STRING_FREE(pubkey_new);
}
/**