summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/options.c1
1 files changed, 1 insertions, 0 deletions
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;
}