Page MenuHomePhabricator

efl_ui_test_widget: Fix resource leak
ClosedPublic

Authored by devilhorns on Apr 29 2019, 8:24 AM.

Details

Summary

Coverity reports that we leak the variable 'a' here so lets add a call
to eina_array_free

Fixes CID1400824

@fix
Depends on D8778

Diff Detail

Repository
rEFL core/efl
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
devilhorns created this revision.Apr 29 2019, 8:24 AM
devilhorns requested review of this revision.Apr 29 2019, 8:24 AM
segfaultxavi accepted this revision.May 2 2019, 4:18 AM
segfaultxavi added a subscriber: segfaultxavi.

Such deja vu... this test has duplicated code everywhere! And leaky code on top of that!

Anyway, this patch builds, passes tests and makes sense.

This revision is now accepted and ready to land.May 2 2019, 4:18 AM
This revision was automatically updated to reflect the committed changes.