lib: Pass mem_ctx to lock_path()
[nivanova/samba-autobuild/.git] / source3 / utils / status.c
index 811eb7b492ba9be7a51e83bd06183b028f22401e..f0d1a851be4d645b7c72d11972a767d2596b2925 100644 (file)
@@ -685,7 +685,7 @@ int main(int argc, const char *argv[])
                int result;
                struct db_context *db;
 
-               db_path = lock_path("locking.tdb");
+               db_path = lock_path(talloc_tos(), "locking.tdb");
                if (db_path == NULL) {
                        d_printf("Out of memory - exiting\n");
                        ret = -1;