Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/makemandb PR/51034: Abhinav Upadhyay: makemandb(8):...



details:   https://anonhg.NetBSD.org/src/rev/71b23c902f68
branches:  trunk
changeset: 344477:71b23c902f68
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Mar 31 20:17:58 2016 +0000

description:
PR/51034: Abhinav Upadhyay: makemandb(8): Close database connection when
failed to commit

diffstat:

 usr.sbin/makemandb/makemandb.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 41c6deee067e -r 71b23c902f68 usr.sbin/makemandb/makemandb.c
--- a/usr.sbin/makemandb/makemandb.c    Thu Mar 31 20:16:58 2016 +0000
+++ b/usr.sbin/makemandb/makemandb.c    Thu Mar 31 20:17:58 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: makemandb.c,v 1.32 2016/03/24 17:28:03 christos Exp $  */
+/*     $NetBSD: makemandb.c,v 1.33 2016/03/31 20:17:58 christos Exp $  */
 /*
  * Copyright (c) 2011 Abhinav Upadhyay <er.abhinav.upadhyay%gmail.com@localhost>
  * Copyright (c) 2011 Kristaps Dzonsons <kristaps%bsd.lv@localhost>
@@ -17,7 +17,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: makemandb.c,v 1.32 2016/03/24 17:28:03 christos Exp $");
+__RCSID("$NetBSD: makemandb.c,v 1.33 2016/03/31 20:17:58 christos Exp $");
 
 #include <sys/stat.h>
 #include <sys/types.h>
@@ -480,6 +480,7 @@
        if (errmsg != NULL) {
                warnx("%s", errmsg);
                free(errmsg);
+               close_db(db);
                exit(EXIT_FAILURE);
        }
 



Home | Main Index | Thread Index | Old Index