efl_ui_selection_manager: Don't leak malloc'd data
authorChristopher Michael <cp.michael@samsung.com>
Mon, 1 Apr 2019 14:02:57 +0000 (10:02 -0400)
committerJunsuChoi <jsuya.choi@samsung.com>
Tue, 2 Apr 2019 04:24:22 +0000 (13:24 +0900)
commita552ff9a8636cc7420f3ae2be69f948fb517f27d
treeb7fe49312e5da17bc47a4795d893ba2362c85d86
parent84040f6051959215068cd5c05e05378f7b97686c
efl_ui_selection_manager: Don't leak malloc'd data

Summary:
Coverity reports that we potentially leak char *s here. If we do not
have 'data_ret', then the malloc'd 's' sould be freed as we are not
going to use it.

Fixes Coverity CID1396949

@fix

Reviewers: raster, cedric, bu5hm4n, zmike

Reviewed By: bu5hm4n

Subscribers: #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8523
src/lib/elementary/efl_ui_selection_manager.c