]> git.proxmox.com Git - mirror_kronosnet.git/commitdiff
vty: free memory
authorFabio M. Di Nitto <fdinitto@redhat.com>
Mon, 25 Oct 2010 11:31:17 +0000 (13:31 +0200)
committerFabio M. Di Nitto <fdinitto@redhat.com>
Mon, 25 Oct 2010 11:31:17 +0000 (13:31 +0200)
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
vty.c

diff --git a/vty.c b/vty.c
index 8d9cd29c8b772526dcb6569130d735617d86bee8..276c002af39a87397eaf243b347846c4e19b066a 100644 (file)
--- a/vty.c
+++ b/vty.c
@@ -63,6 +63,8 @@ static void *vty_accept_thread(void *arg)
                log_info("User %s connected from %s (%s)", vty->username, src_ip[0], src_ip[1]);
        }
 
+       addrtostr_free(src_ip);
+
 out_clean:
        pthread_mutex_lock(&knet_vty_mutex);
        vty->active = 0;