mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-05 20:55:46 +03:00
examples: Use the right cleanup functions.
(cherry picked from commit 525324b2f9
)
This commit is contained in:
committed by
Andreas Schneider
parent
8154e24027
commit
9c8f285a98
@@ -157,7 +157,7 @@ int authenticate_console(ssh_session session){
|
||||
banner = ssh_get_issue_banner(session);
|
||||
if (banner) {
|
||||
printf("%s\n",banner);
|
||||
free(banner);
|
||||
ssh_string_free_char(banner);
|
||||
}
|
||||
|
||||
return rc;
|
||||
|
Reference in New Issue
Block a user