git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5dd82fb
)
Don't steal when we know the ptr will be null. Thanks to Simo for
author
Jeremy Allison
<jra@samba.org>
Fri, 22 May 2009 01:48:17 +0000
(18:48 -0700)
committer
Jeremy Allison
<jra@samba.org>
Fri, 22 May 2009 01:48:17 +0000
(18:48 -0700)
pointing this out.
Jeremy.
source3/groupdb/mapping_ldb.c
patch
|
blob
|
history
diff --git
a/source3/groupdb/mapping_ldb.c
b/source3/groupdb/mapping_ldb.c
index 27a6c3e0a002b942f2ae30571adba9b674c1fe25..3fbc1829cde70db89c66629ef03273638068d05c 100644
(file)
--- a/
source3/groupdb/mapping_ldb.c
+++ b/
source3/groupdb/mapping_ldb.c
@@
-510,12
+510,11
@@
static NTSTATUS enum_aliasmem(const DOM_SID *alias, DOM_SID **sids, size_t *num)
ret = ldb_search(ldb, ldb, &res, dn, LDB_SCOPE_BASE, attrs, NULL);
if (ret == LDB_SUCCESS && res->count == 0) {
- talloc_
steal(dn,
res);
+ talloc_
free(
res);
talloc_free(dn);
return NT_STATUS_OK;
}
if (ret != LDB_SUCCESS) {
- talloc_steal(dn, res);
talloc_free(dn);
return NT_STATUS_INTERNAL_DB_CORRUPTION;
}