From bf4d29b96399f5b1ed8927156b746d8d2f647ba2 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 17 Apr 2009 14:50:05 +0000 Subject: Fix memory leak. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@526 7dcaeef0-15fb-0310-b436-a5af3365683c --- libssh/auth.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libssh/auth.c b/libssh/auth.c index d8ff54c2..105272c2 100644 --- a/libssh/auth.c +++ b/libssh/auth.c @@ -566,6 +566,7 @@ int ssh_userauth_agent_pubkey(SSH_SESSION *session, const char *username, string_free(service); string_free(method); string_free(algo); + string_free(key); leave_function(); return rc; @@ -576,6 +577,7 @@ error: string_free(service); string_free(method); string_free(algo); + string_free(key); leave_function(); return rc; -- cgit