From 213321d706665b42a5aa0b981958537e5dbe0a38 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 5 Oct 2012 11:11:51 +0200 Subject: options: Fix a memory in ssh_options_copy() on error. --- src/options.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/options.c b/src/options.c index c1df1ff..844d3a5 100644 --- a/src/options.c +++ b/src/options.c @@ -112,6 +112,7 @@ int ssh_options_copy(ssh_session src, ssh_session *dest) { rc = ssh_list_append(new->opts.identity, id); if (rc < 0) { + free(id); ssh_free(new); return -1; } -- cgit