summaryrefslogtreecommitdiff
path: root/source3/lib/account_pol.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/account_pol.c')
-rw-r--r--source3/lib/account_pol.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/account_pol.c b/source3/lib/account_pol.c
index 7fc565121c..1e435ca53e 100644
--- a/source3/lib/account_pol.c
+++ b/source3/lib/account_pol.c
@@ -283,7 +283,8 @@ bool init_account_policy(void)
if (db->transaction_commit(db) != 0) {
DEBUG(0, ("transaction_commit failed\n"));
- goto cancel;
+ TALLOC_FREE(db);
+ return false;
}
return True;