git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55b3854
)
r2192: removed an erroneous free() call on an error path
author
Andrew Tridgell
<tridge@samba.org>
Thu, 2 Sep 2004 21:55:24 +0000
(21:55 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:58:30 +0000
(12:58 -0500)
(This used to be commit
c80d686f59a8b6c53305af1233137c22a26f6750
)
source4/lib/ldb/ldb_tdb/ldb_tdb.c
patch
|
blob
|
history
diff --git
a/source4/lib/ldb/ldb_tdb/ldb_tdb.c
b/source4/lib/ldb/ldb_tdb/ldb_tdb.c
index 355de21250917a469e047ffee831f0d03a5a6b06..e36770f88b18077f4a5fc0b0baa0443ce997fa55 100644
(file)
--- a/
source4/lib/ldb/ldb_tdb/ldb_tdb.c
+++ b/
source4/lib/ldb/ldb_tdb/ldb_tdb.c
@@
-364,7
+364,6
@@
static int msg_add_element(struct ldb_context *ldb,
if (el->num_values != 0) {
e2->values = ldb_malloc_array_p(ldb, struct ldb_val, el->num_values);
if (!e2->values) {
- free(e2->name);
errno = ENOMEM;
return -1;
}