From 37dc4e9bf757710c30d05ff9cba3c960ce76989a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 2 Sep 2004 21:55:24 +0000 Subject: r2192: removed an erroneous free() call on an error path (This used to be commit c80d686f59a8b6c53305af1233137c22a26f6750) --- source4/lib/ldb/ldb_tdb/ldb_tdb.c | 1 - 1 file changed, 1 deletion(-) (limited to 'source4/lib') 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; } -- cgit