edc_parser: fix one more memory leak.

This commit is contained in:
Hermet Park 2016-03-07 23:26:00 +09:00
parent f760fd4144
commit 55987e5774
1 changed files with 5 additions and 0 deletions

View File

@ -1342,12 +1342,14 @@ parser_collections_block_pos_get(const Evas_Object *entry,
{
block = strchr(block, '\n');
*ret = block - utf8 + 1;
free(utf8);
return EINA_FALSE;
}
else if (*block == '{')
{
block = strchr(block, '\n');
*ret = block - utf8 + 1;
free(utf8);
return EINA_TRUE;
}
block++;
@ -1364,14 +1366,17 @@ parser_collections_block_pos_get(const Evas_Object *entry,
{
group_block = strchr(group_block, '\n');
*ret = group_block - utf8 + 1;
free(utf8);
return EINA_FALSE;
}
group_block++;
}
free(utf8);
return EINA_FALSE;
}
pos--;
}
free(utf8);
return EINA_FALSE;
}