Source-Changes-HG archive

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

[src/trunk]: src/external/ibm-public/postfix/dist/src/postconf CID 1102804: M...



details:   https://anonhg.NetBSD.org/src/rev/fa5cfd75dd76
branches:  trunk
changeset: 791353:fa5cfd75dd76
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Nov 14 01:39:26 2013 +0000

description:
CID 1102804: Memory leak

diffstat:

 external/ibm-public/postfix/dist/src/postconf/postconf_master.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 35b8c6e1a43d -r fa5cfd75dd76 external/ibm-public/postfix/dist/src/postconf/postconf_master.c
--- a/external/ibm-public/postfix/dist/src/postconf/postconf_master.c   Thu Nov 14 01:36:00 2013 +0000
+++ b/external/ibm-public/postfix/dist/src/postconf/postconf_master.c   Thu Nov 14 01:39:26 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: postconf_master.c,v 1.1.1.3 2013/09/25 19:06:33 tron Exp $     */
+/*     $NetBSD: postconf_master.c,v 1.2 2013/11/14 01:39:26 christos Exp $     */
 
 /*++
 /* NAME
@@ -140,8 +140,10 @@
 #define MASTER_BLANKS  " \t\r\n"               /* XXX */
 
     argv = argv_split(buf, MASTER_BLANKS);
-    if (argv->argc < PC_MASTER_MIN_FIELDS)
+    if (argv->argc < PC_MASTER_MIN_FIELDS) {
+       argv_free(argv);
        return ("bad field count");
+    }
     normalize_options(argv);
     masterp->name_space =
        concatenate(argv->argv[0], ".", argv->argv[1], (char *) 0);



Home | Main Index | Thread Index | Old Index