Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/ppp/dist/chat CID 1006982: Fix memory leak



details:   https://anonhg.NetBSD.org/src/rev/76b617b48a95
branches:  trunk
changeset: 791868:76b617b48a95
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Dec 07 20:24:35 2013 +0000

description:
CID 1006982: Fix memory leak

diffstat:

 external/bsd/ppp/dist/chat/chat.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 8464bea76653 -r 76b617b48a95 external/bsd/ppp/dist/chat/chat.c
--- a/external/bsd/ppp/dist/chat/chat.c Sat Dec 07 19:42:36 2013 +0000
+++ b/external/bsd/ppp/dist/chat/chat.c Sat Dec 07 20:24:35 2013 +0000
@@ -91,7 +91,7 @@
 static const char rcsid[] = "Id: chat.c,v 1.30 2004/01/17 05:47:55 carlsonj Exp ";
 #endif
 #else
-__RCSID("$NetBSD: chat.c,v 1.2 2013/11/28 22:33:42 christos Exp $");
+__RCSID("$NetBSD: chat.c,v 1.3 2013/12/07 20:24:35 christos Exp $");
 #endif
 
 #include <stdio.h>
@@ -1163,6 +1163,7 @@
        timeout_next = 0;
        s = clean(s, 0);
        timeout = atoi(s);
+       free(s);
        
        if (timeout <= 0)
            timeout = DEFAULT_CHAT_TIMEOUT;



Home | Main Index | Thread Index | Old Index