summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/db.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/db.c b/src/db.c
index 02d462e..ddc01c3 100644
--- a/src/db.c
+++ b/src/db.c
@@ -1123,14 +1123,12 @@ struct db_filter_col *db_col_init(uint32_t def_action)
return NULL;
/* reset the DB to a known state */
- if (db_col_reset(col, def_action) < 0)
- goto init_failure;
+ if (db_col_reset(col, def_action) < 0) {
+ db_col_release(col);
+ return NULL;
+ }
return col;
-
-init_failure:
- db_col_release(col);
- return NULL;
}
/**