1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

r2192: removed an erroneous free() call on an error path

This commit is contained in:
Andrew Tridgell 2004-09-02 21:55:24 +00:00 committed by Gerald (Jerry) Carter
parent 2d8f400592
commit c80d686f59

View File

@ -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;
}