forked from enlightenment/efl
elm map - fix coverity found leak in xml parsing
fix CID 1352814
This commit is contained in:
parent
9b05497d3c
commit
eb4ee72a23
|
@ -2848,6 +2848,7 @@ _xml_name_dump_cb(void *data,
|
|||
if (!buf) return EINA_FALSE;
|
||||
snprintf(buf, length + 1, "%s", value);
|
||||
if (dump->id == NAME_XML_NAME) dump->address = buf;
|
||||
else free(buf);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue