summaryrefslogtreecommitdiffstats
path: root/examples/authentication.c
diff options
context:
space:
mode:
authorOliver Stöneberg <oliverst@online.de>2011-05-13 05:50:41 -0700
committerAndreas Schneider <asn@cryptomilk.org>2011-05-17 20:57:38 +0200
commit9c8f285a985026da9490e044a1855b3de31f2747 (patch)
tree1b057fab0e3e938c891318d601ab48b38eaad52a /examples/authentication.c
parent8154e240279ac2c54500270eb7d6f39354eb5156 (diff)
downloadlibssh-9c8f285a985026da9490e044a1855b3de31f2747.tar.gz
libssh-9c8f285a985026da9490e044a1855b3de31f2747.tar.xz
libssh-9c8f285a985026da9490e044a1855b3de31f2747.zip
examples: Use the right cleanup functions.
(cherry picked from commit 525324b2f9ee2bd9a39ba88267e76c88e7f58bd1)
Diffstat (limited to 'examples/authentication.c')
-rw-r--r--examples/authentication.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/authentication.c b/examples/authentication.c
index 0f236326..c233e300 100644
--- a/examples/authentication.c
+++ b/examples/authentication.c
@@ -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;