Module Name: src
Committed By: christos
Date: Thu Mar 31 20:17:58 UTC 2016
Modified Files:
src/usr.sbin/makemandb: makemandb.c
Log Message:
PR/51034: Abhinav Upadhyay: makemandb(8): Close database connection when
failed to commit
To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 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.32 src/usr.sbin/makemandb/makemandb.c:1.33
--- src/usr.sbin/makemandb/makemandb.c:1.32 Thu Mar 24 13:28:03 2016
+++ src/usr.sbin/makemandb/makemandb.c Thu Mar 31 16:17:58 2016
@@ -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 <[email protected]>
* Copyright (c) 2011 Kristaps Dzonsons <[email protected]>
@@ -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 @@ main(int argc, char *argv[])
if (errmsg != NULL) {
warnx("%s", errmsg);
free(errmsg);
+ close_db(db);
exit(EXIT_FAILURE);
}