Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/config avoid error path SIGSEGV



details:   https://anonhg.NetBSD.org/src/rev/822058544464
branches:  trunk
changeset: 329358:822058544464
user:      dholland <dholland%NetBSD.org@localhost>
date:      Wed May 21 05:25:34 2014 +0000

description:
avoid error path SIGSEGV

diffstat:

 usr.bin/config/files.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 586967d851fc -r 822058544464 usr.bin/config/files.c
--- a/usr.bin/config/files.c    Wed May 21 04:24:40 2014 +0000
+++ b/usr.bin/config/files.c    Wed May 21 05:25:34 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: files.c,v 1.11 2012/03/11 08:21:53 dholland Exp $      */
+/*     $NetBSD: files.c,v 1.12 2014/05/21 05:25:34 dholland Exp $      */
 
 /*
  * Copyright (c) 1992, 1993
@@ -160,7 +160,9 @@
        TAILQ_INSERT_TAIL(&allfiles, fi, fi_next);
        return;
  bad:
-       condexpr_destroy(optx);
+       if (optx != NULL) {
+               condexpr_destroy(optx);
+       }
 }
 
 void



Home | Main Index | Thread Index | Old Index