mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-12-02 01:17:52 +03:00
session: Fix a memory leak in ssh_new() on error.
This commit is contained in:
@@ -146,6 +146,7 @@ ssh_session ssh_new(void) {
|
|||||||
return session;
|
return session;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
|
free(id);
|
||||||
ssh_free(session);
|
ssh_free(session);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user