diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-08-26 18:37:00 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-08-26 21:06:06 +0200 |
commit | b11b2425a9cc919f34d7c8b1dae7b40f3cf11f08 (patch) | |
tree | da6410b0024099a22c6b0e30f7aebcda27a90bdb /source4 | |
parent | 433c08045ee96ca2e507cdec47bf9ef1dd95540e (diff) | |
download | samba-b11b2425a9cc919f34d7c8b1dae7b40f3cf11f08.tar.gz samba-b11b2425a9cc919f34d7c8b1dae7b40f3cf11f08.tar.bz2 samba-b11b2425a9cc919f34d7c8b1dae7b40f3cf11f08.zip |
s4:dsdb_module_find_dsheuristics - free the "DN" also on other exit cases
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/util.c b/source4/dsdb/samdb/ldb_modules/util.c index 2323085c34..f046abf3a6 100644 --- a/source4/dsdb/samdb/ldb_modules/util.c +++ b/source4/dsdb/samdb/ldb_modules/util.c @@ -1172,9 +1172,11 @@ const struct ldb_val *dsdb_module_find_dsheuristics(struct ldb_module *module, attrs, DSDB_FLAG_NEXT_MODULE); if (ret == LDB_SUCCESS && res->count == 1) { + talloc_free(new_dn); return ldb_msg_find_ldb_val(res->msgs[0], "dsHeuristics"); } + talloc_free(new_dn); return NULL; } |