mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
tests: Fix memory leak in torture_server_x11 test
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -45,6 +45,8 @@ static void teardown(void **state) {
|
||||
struct hostkey_state *h = (struct hostkey_state *)*state;
|
||||
|
||||
unlink(h->hostkey);
|
||||
free(h->hostkey_path);
|
||||
free(h);
|
||||
}
|
||||
|
||||
/* For x11_screen_number, need something that is not equal to htonl
|
||||
|
||||
Reference in New Issue
Block a user