mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 18:50:28 +09:00
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:
committed by
Andreas Schneider
parent
d56c8fdfc6
commit
ee034e0484
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user