mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-06 10:27:22 +09:00
session: Fix a memory leak in ssh_new() on error.
(cherry picked from commit 280ce3fe93)
This commit is contained in:
@@ -143,6 +143,7 @@ ssh_session ssh_new(void) {
|
||||
return session;
|
||||
|
||||
err:
|
||||
free(id);
|
||||
ssh_free(session);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user