HomePhabricator

eldbus: Fix resource leak

Authored by devilhorns on Mar 19 2019, 5:57 AM.

Description

eldbus: Fix resource leak

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

Details

Committed
devilhornsMar 19 2019, 5:57 AM
Reviewer
cedric
Differential Revision
D8352: eldbus: Fix resource leak
Parents
rEFL04ea00521885: efl_ui_widget: Remove duplicate definition of ELM_WIDGET_DATA_GET
Branches
Unknown
Tags
Unknown