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:
Stefan Schmidt 2013-02-19 09:04:45 +00:00
parent 0a71cd2727
commit 7129201160
1 changed files with 1 additions and 2 deletions

View File

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