dsdb: use the correct talloc parent in dsdb_repl_merge_working_schema()
[obnox/samba/samba-obnox.git] / source4 / dsdb / repl / replicated_objects.c
index b0abc1acbeec622c51e1dc87ff028c735353f430..e018aa4e779165ade86830ede91bacc916d09a4c 100644 (file)
@@ -58,7 +58,7 @@ static WERROR dsdb_repl_merge_working_schema(struct ldb_context *ldb,
                 * as the rest won't be modified and this is for
                 * a short lived object.
                 */
-               tmp2 = talloc(dest_schema->classes, struct dsdb_class);
+               tmp2 = talloc(dest_schema, struct dsdb_class);
                if (tmp2 == NULL) {
                        return WERR_NOMEM;
                }
@@ -85,7 +85,7 @@ static WERROR dsdb_repl_merge_working_schema(struct ldb_context *ldb,
                 * as the rest won't be modified and this is for
                 * a short lived object.
                 */
-               tmp2 = talloc(dest_schema->attributes, struct dsdb_attribute);
+               tmp2 = talloc(dest_schema, struct dsdb_attribute);
                if (tmp2 == NULL) {
                        return WERR_NOMEM;
                }