summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-02 21:55:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:30 -0500
commit37dc4e9bf757710c30d05ff9cba3c960ce76989a (patch)
tree19d9d37b9ed784ecc32f0c573f80935d0e5f32ae /source4/lib/ldb
parent55b38541a00f57106a387e34b045d0f20e9efb87 (diff)
downloadsamba-37dc4e9bf757710c30d05ff9cba3c960ce76989a.tar.gz
samba-37dc4e9bf757710c30d05ff9cba3c960ce76989a.tar.bz2
samba-37dc4e9bf757710c30d05ff9cba3c960ce76989a.zip
r2192: removed an erroneous free() call on an error path
(This used to be commit c80d686f59a8b6c53305af1233137c22a26f6750)
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_tdb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_tdb.c b/source4/lib/ldb/ldb_tdb/ldb_tdb.c
index 355de21250..e36770f88b 100644
--- 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;
}