forked from enlightenment/efl
elm_map: Free allocated buffer in all cases.
Very well spotted from Hermet. My original fix only free'ed the buffer in the case fread failed, but apperently we we always leaked this buffer. Make sure we free it in all cases. SVN revision: 84087
This commit is contained in:
parent
0a71cd2727
commit
7129201160
|
@ -2944,8 +2944,7 @@ _name_list_parse(Elm_Map_Name_List *nl)
|
|||
eina_simple_xml_parse
|
||||
(buf, sz, EINA_TRUE, _xml_name_dump_list_cb, nl);
|
||||
}
|
||||
else
|
||||
free(buf);
|
||||
free(buf);
|
||||
}
|
||||
}
|
||||
fclose(f);
|
||||
|
|
Loading…
Reference in New Issue