tests: Fix memory leak in torture_server_x11 test

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2015-05-06 09:33:51 +02:00
parent ee460dc04b
commit 57afe78167

View File

@@ -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