s4-drs: fixed a memory error introduced yesterday
authorAndrew Tridgell <tridge@samba.org>
Wed, 7 Oct 2009 05:20:16 +0000 (16:20 +1100)
committerAndrew Tridgell <tridge@samba.org>
Wed, 7 Oct 2009 05:20:16 +0000 (16:20 +1100)
ids is retrurned via _ids, so it needs to be on the passed in mem_ctx

source4/dsdb/repl/replicated_objects.c

index 9877803cbaa5b12dddc5c4cc02cf316a0508d7e0..ec5dcd472054964ef561a28b3b82e21e381e5631 100644 (file)
@@ -444,7 +444,7 @@ WERROR dsdb_origin_objects_commit(struct ldb_context *ldb,
                }
        }
 
-       ids = talloc_array(objects,
+       ids = talloc_array(mem_ctx,
                           struct drsuapi_DsReplicaObjectIdentifier2,
                           num_objects);
        if (ids == NULL) {