1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-29 13:01:13 +03:00

tests: Fix memory leak in buffer test.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
This commit is contained in:
Andreas Schneider
2014-08-15 10:19:42 +02:00
parent 1b6375ce89
commit 6961dd79ad

View File

@ -148,6 +148,8 @@ static void torture_buffer_add_format(void **state) {
len = buffer_get_rest_len(buffer); len = buffer_get_rest_len(buffer);
assert_int_equal(len, sizeof(verif) - 1); assert_int_equal(len, sizeof(verif) - 1);
assert_memory_equal(buffer_get_rest(buffer), verif, sizeof(verif) -1); assert_memory_equal(buffer_get_rest(buffer), verif, sizeof(verif) -1);
ssh_string_free(s);
} }
static void torture_buffer_get_format(void **state) { static void torture_buffer_get_format(void **state) {