mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
r2192: removed an erroneous free() call on an error path
(This used to be commit c80d686f59a8b6c53305af1233137c22a26f6750)
This commit is contained in:
parent
55b38541a0
commit
37dc4e9bf7
@ -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…
x
Reference in New Issue
Block a user