diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2015-05-06 09:33:51 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-05-06 09:33:51 +0200 |
commit | 57afe7816764a771c32c0bdae71603d0e4ef7bf3 (patch) | |
tree | fcf8d79e43aacc8e6b371536e9132d1b7f66325a /tests/unittests | |
parent | ee460dc04b8db188a29e555665dc48b30bbf9811 (diff) | |
download | libssh-57afe7816764a771c32c0bdae71603d0e4ef7bf3.tar.gz libssh-57afe7816764a771c32c0bdae71603d0e4ef7bf3.tar.xz libssh-57afe7816764a771c32c0bdae71603d0e4ef7bf3.zip |
tests: Fix memory leak in torture_server_x11 test
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'tests/unittests')
-rw-r--r-- | tests/unittests/torture_server_x11.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unittests/torture_server_x11.c b/tests/unittests/torture_server_x11.c index b990b587..661656a7 100644 --- a/tests/unittests/torture_server_x11.c +++ b/tests/unittests/torture_server_x11.c @@ -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 |