git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08de05c
)
r21311: fix very ugly "using free'ed memory" bug
author
Stefan Metzmacher
<metze@samba.org>
Tue, 13 Feb 2007 12:32:48 +0000
(12:32 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:48:08 +0000
(14:48 -0500)
This was there since 2005...
metze
(This used to be commit
393e4eeb82df8017eb0afb526f4d723cf8814311
)
source4/lib/ldb/ldb_tdb/ldb_index.c
patch
|
blob
|
history
diff --git
a/source4/lib/ldb/ldb_tdb/ldb_index.c
b/source4/lib/ldb/ldb_tdb/ldb_index.c
index f6dc997f3a50aa930611854ca1f427efc6ca2c5c..7fe769a010604df36c430ae2e38b6522527e0cd4 100644
(file)
--- a/
source4/lib/ldb/ldb_tdb/ldb_index.c
+++ b/
source4/lib/ldb/ldb_tdb/ldb_index.c
@@
-337,7
+337,7
@@
static int ltdb_index_dn_leaf(struct ldb_module *module,
ldb_oom(module->ldb);
return -1;
}
- list->dn[0] = talloc_strdup(list, (char *)tree->u.equality.value.data);
+ list->dn[0] = talloc_strdup(list
->dn
, (char *)tree->u.equality.value.data);
if (list->dn[0] == NULL) {
ldb_oom(module->ldb);
return -1;