forked from enlightenment/efl
edje: Don't leak array source if we are going to exit function
This patch fixes a potential resource leak where we would previously create a new eina_array and then possibly return from this function (when checking validity of 's' parameter) without freeing the newly created array. Coverity CID1350291 @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
parent
3666d14980
commit
07da0ba5d7
|
@ -4217,10 +4217,10 @@ process_color_tree(char *s, const char *f_in, int ln)
|
|||
Eina_List *l;
|
||||
char *name;
|
||||
|
||||
array = eina_array_new(4);
|
||||
|
||||
if (!s) return;
|
||||
|
||||
array = eina_array_new(4);
|
||||
|
||||
do
|
||||
{
|
||||
s = color_tree_token_next(token[id], s, &ln);
|
||||
|
|
Loading…
Reference in New Issue