From 792def7a65b7d95c57e44900f0eb620e2cd8be83 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 23 Oct 2009 11:45:44 +0200 Subject: Add missing free. --- libssh/options.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libssh/options.c b/libssh/options.c index e4b2027c..a46740c7 100644 --- a/libssh/options.c +++ b/libssh/options.c @@ -751,6 +751,7 @@ int ssh_bind_options_set(ssh_bind sshbind, enum ssh_bind_options_e type, ssh_set_error_invalid(sshbind, __FUNCTION__); return -1; } else { + SAFE_FREE(sshbind->dsakey); sshbind->dsakey = strdup(value); if (sshbind->dsakey == NULL) { ssh_set_error_oom(sshbind); -- cgit