mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 18:50:28 +09:00
Add missing free.
This commit is contained in:
@@ -751,6 +751,7 @@ int ssh_bind_options_set(ssh_bind sshbind, enum ssh_bind_options_e type,
|
|||||||
ssh_set_error_invalid(sshbind, __FUNCTION__);
|
ssh_set_error_invalid(sshbind, __FUNCTION__);
|
||||||
return -1;
|
return -1;
|
||||||
} else {
|
} else {
|
||||||
|
SAFE_FREE(sshbind->dsakey);
|
||||||
sshbind->dsakey = strdup(value);
|
sshbind->dsakey = strdup(value);
|
||||||
if (sshbind->dsakey == NULL) {
|
if (sshbind->dsakey == NULL) {
|
||||||
ssh_set_error_oom(sshbind);
|
ssh_set_error_oom(sshbind);
|
||||||
|
|||||||
Reference in New Issue
Block a user