tests: Don't leak memory.

This commit is contained in:
Andreas Schneider
2013-06-13 15:42:13 +02:00
parent 1a894e2cf2
commit 01493b8d47

View File

@@ -106,7 +106,8 @@ static void torture_buffer_get_ssh_string(void **state) {
buffer_add_data(buffer,data,j);
for(l=0;l<k;++l){
ssh_string str = buffer_get_ssh_string(buffer);
assert_true(str==NULL);
assert_null(str);
ssh_string_free(str);
}
buffer_free(buffer);
}