summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/common/ldb_modules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c
index 7f8844137c..4c483b7afb 100644
--- a/source4/lib/ldb/common/ldb_modules.c
+++ b/source4/lib/ldb/common/ldb_modules.c
@@ -260,6 +260,6 @@ void ldb_set_errstring(struct ldb_module *module, char *err_string)
talloc_free(module->ldb->err_string);
}
- module->ldb->err_string = err_string;
+ module->ldb->err_string = talloc_steal(module->ldb, err_string);
}