lib: Pass mem_ctx to state_path()
[amitay/samba.git] / source3 / winbindd / idmap_tdb.c
index 24ef11836e1107865b3aca579aa45f37f6d69a60..b1f908e2d62a287d2ec99a94f5f31868b513aa0b 100644 (file)
@@ -310,7 +310,7 @@ static NTSTATUS idmap_tdb_open_db(struct idmap_domain *dom)
        mem_ctx = talloc_stackframe();
 
        /* use the old database if present */
-       tdbfile = state_path("winbindd_idmap.tdb");
+       tdbfile = state_path(talloc_tos(), "winbindd_idmap.tdb");
        if (!tdbfile) {
                DEBUG(0, ("Out of memory!\n"));
                ret = NT_STATUS_NO_MEMORY;