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: Close databas...



details:   https://anonhg.NetBSD.org/src/rev/74f5d2455450
branches:  trunk
changeset: 344724:74f5d2455450
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Apr 13 01:32:00 2016 +0000

description:
PR/51034: Abhinav Upadhyay: 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 57a3046e6d99 -r 74f5d2455450 usr.sbin/makemandb/makemandb.c
--- a/usr.sbin/makemandb/makemandb.c    Wed Apr 13 00:47:46 2016 +0000
+++ b/usr.sbin/makemandb/makemandb.c    Wed Apr 13 01:32:00 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: makemandb.c,v 1.33 2016/03/31 20:17:58 christos Exp $  */
+/*     $NetBSD: makemandb.c,v 1.34 2016/04/13 01:32:00 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.33 2016/03/31 20:17:58 christos Exp $");
+__RCSID("$NetBSD: makemandb.c,v 1.34 2016/04/13 01:32:00 christos Exp $");
 
 #include <sys/stat.h>
 #include <sys/types.h>
@@ -429,6 +429,7 @@
        if (errmsg != NULL) {
                warnx("%s", errmsg);
                free(errmsg);
+               close_db(db);
                exit(EXIT_FAILURE);
        }
 



Home | Main Index | Thread Index | Old Index