Module Name:    src
Committed By:   christos
Date:           Sat Dec  7 20:24:35 UTC 2013

Modified Files:
        src/external/bsd/ppp/dist/chat: chat.c

Log Message:
CID 1006982: Fix memory leak


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/bsd/ppp/dist/chat/chat.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/ppp/dist/chat/chat.c
diff -u src/external/bsd/ppp/dist/chat/chat.c:1.2 src/external/bsd/ppp/dist/chat/chat.c:1.3
--- src/external/bsd/ppp/dist/chat/chat.c:1.2	Thu Nov 28 17:33:42 2013
+++ src/external/bsd/ppp/dist/chat/chat.c	Sat Dec  7 15:24:35 2013
@@ -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 @@ char *s;
 	timeout_next = 0;
 	s = clean(s, 0);
 	timeout = atoi(s);
+	free(s);
 	
 	if (timeout <= 0)
 	    timeout = DEFAULT_CHAT_TIMEOUT;

Reply via email to