Found by GCC 9.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
/* Open idmap repository */
ctx->db = db_open(ctx, db_path, 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0644,
DBWRAP_LOCK_ORDER_1, DBWRAP_FLAG_NONE);
- TALLOC_FREE(db_path);
-
if (ctx->db == NULL) {
DEBUG(0, ("Unable to open idmap_tdb2 database '%s'\n",
db_path));
+ TALLOC_FREE(db_path);
return NT_STATUS_UNSUCCESSFUL;
}
+ TALLOC_FREE(db_path);
return idmap_tdb2_init_hwm(dom);
}