1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-28 01:41:48 +03: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>
This commit is contained in:
Anderson Toshiyuki Sasaki
2018-09-24 18:56:22 +02:00
committed by Andreas Schneider
parent 2eaa23a20e
commit ca7da823c3
4 changed files with 10 additions and 10 deletions

View File

@ -247,7 +247,7 @@ static void *thread_ssh_buffer_get_ssh_string(void *threadid)
for (l = 0; l < k; ++l) {
ssh_string str = ssh_buffer_get_ssh_string(buffer);
assert_null(str);
ssh_string_free(str);
SSH_STRING_FREE(str);
}
ssh_buffer_free(buffer);
}
@ -316,7 +316,7 @@ static void *thread_ssh_buffer_add_format(void *threadid)
assert_int_equal(len, sizeof(verif) - 1);
assert_memory_equal(ssh_buffer_get(buffer), verif, sizeof(verif) -1);
ssh_string_free(s);
SSH_STRING_FREE(s);
/* Teardown */
ssh_buffer_free(buffer);