1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

options: Fix a memory leak if we can't add an idenity.

This commit is contained in:
Andreas Schneider
2012-10-05 10:55:29 +02:00
parent d0889dd9ea
commit cddfe602cc

View File

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