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:
@ -148,6 +148,8 @@ static void torture_buffer_add_format(void **state) {
|
||||
len = buffer_get_rest_len(buffer);
|
||||
assert_int_equal(len, 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) {
|
||||
|
Reference in New Issue
Block a user