[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] examples: fix memory leak in samplesshd


Signed-off-by: Luka Perkov <luka.perkov@xxxxxxxxxx>
---
 examples/samplesshd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/examples/samplesshd.c b/examples/samplesshd.c
index f9e0dc8..ac0411f 100644
--- a/examples/samplesshd.c
+++ b/examples/samplesshd.c
@@ -273,6 +273,7 @@ int main(int argc, char **argv){
 //            if(!strcmp(ssh_message_channel_request_subsystem(message),"sftp")){
                 sftp=1;
                 ssh_message_channel_request_reply_success(message);
+                ssh_message_free(message);
                 break;
  //           }
            }
-- 
1.8.5.3


Archive administrator: postmaster@lists.cynapses.org