Module Name:    src
Committed By:   christos
Date:           Wed Apr 13 01:32:00 UTC 2016

Modified Files:
        src/usr.sbin/makemandb: makemandb.c

Log Message:
PR/51034: Abhinav Upadhyay: Close database connection when failed to commit


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/usr.sbin/makemandb/makemandb.c

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

Modified files:

Index: src/usr.sbin/makemandb/makemandb.c
diff -u src/usr.sbin/makemandb/makemandb.c:1.33 src/usr.sbin/makemandb/makemandb.c:1.34
--- src/usr.sbin/makemandb/makemandb.c:1.33	Thu Mar 31 16:17:58 2016
+++ src/usr.sbin/makemandb/makemandb.c	Tue Apr 12 21:32:00 2016
@@ -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.upadh...@gmail.com>
  * Copyright (c) 2011 Kristaps Dzonsons <krist...@bsd.lv>
@@ -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 @@ main(int argc, char *argv[])
 	if (errmsg != NULL) {
 		warnx("%s", errmsg);
 		free(errmsg);
+		close_db(db);
 		exit(EXIT_FAILURE);
 	}
 

Reply via email to