Coverity reports that we leak the return from _escape(command) here,
so since we have to free the return from _escape, place it in it's own
variable that we can call free() on after we are done with it.
Fixes CID1399105
@fix
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D8688
{
char *content = eina_array_data_get(array, i);
char *param = calloc(1, strlen(content) + 1);
+ char *esc;
if (!param)
{
//build the command
if (i != 0)
eina_strbuf_append(command, " ");
- eina_strbuf_append(command, _escape(content));
+ esc = _escape(content);
+ eina_strbuf_append(command, esc);
+ free(esc);
//convert string to stringshare
strcpy(param, content);
_remove_invalid_chars(param);