From 5b84772343d0496d67402b24fd247d3f6884b6f2 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 4 Nov 2016 08:15:38 +0100 Subject: [PATCH] tests: Fix memory leak in torture_auth_cert Signed-off-by: Andreas Schneider --- tests/client/torture_auth.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/client/torture_auth.c b/tests/client/torture_auth.c index 8a23454e..6c341b92 100644 --- a/tests/client/torture_auth.c +++ b/tests/client/torture_auth.c @@ -500,9 +500,6 @@ static void torture_auth_cert(void **state) { struct passwd *pwd; int rc; - privkey = ssh_key_new(); - assert_true(privkey != NULL); - cert = ssh_key_new(); assert_true(cert != NULL);