Summary:
Coverity reports that we leak 'data' here (which can happen if we
error on 'eina_value_dup(value)'). Iniitalize 'data' to NULL, and add a
'free' call to cleanup 'data' before we return a rejected future.
Fixes Coverity CID1399097
@fix
Depends on D8350
Reviewers: raster, cedric, zmike, bu5hm4n, stefan_schmidt
Reviewed By: cedric
Subscribers: #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D8352
const char *property,
Eina_Value *value)
{
- Eldbus_Model_Proxy_Property_Set_Data *data;
+ Eldbus_Model_Proxy_Property_Set_Data *data = NULL;
const char *signature;
Eldbus_Pending *pending;
unsigned char access;
.data = data, .free = _eldbus_model_proxy_cancel_cb);
on_error:
+ free(data);
return efl_loop_future_rejected(obj, err);
}