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:
parent
2d8f400592
commit
c80d686f59
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user