Summary:
buf is always NULL (already freed and set to NULL).
We don't need to add NULL checking and free it.
Reviewers: raster, cedric, Hermet
Subscribers: seoz, cedric
Differential Revision: https://phab.enlightenment.org/D2783
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
}
svr->prev.i = msg;
offset += (s + msg.size);
- if ((svr->buf_size == offset) && ((svr->buf) || (buf)))
+ if ((svr->buf_size == offset) && (svr->buf))
{
if (svr->buf) free(svr->buf);
svr->buf = NULL;
svr->buf_size = 0;
- if (buf) free(buf);
return ECORE_CALLBACK_CANCEL;
}
goto redo;