From cddfe602cc5ee7e7d925a0673570549e2f9fcd61 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 5 Oct 2012 10:55:29 +0200 Subject: options: Fix a memory leak if we can't add an idenity. --- src/options.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/options.c b/src/options.c index 72154cf..c1df1ff 100644 --- a/src/options.c +++ b/src/options.c @@ -541,6 +541,7 @@ int ssh_options_set(ssh_session session, enum ssh_options_e type, } rc = ssh_list_prepend(session->opts.identity, q); if (rc < 0) { + free(q); return -1; } break; -- cgit