efl_ui_selection_manager: free allocated memory after local use

This temporary allocation is only used in this block and goes out of
scope when leaving. Make sure we free the resource before this happens.

Coverity ID: 1402653

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D10045
This commit is contained in:
Stefan Schmidt 2019-09-20 10:46:02 +02:00
parent c02dcf6966
commit 87c8e2718c
1 changed files with 1 additions and 0 deletions

View File

@ -2429,6 +2429,7 @@ _wl_general_converter(char *target, Sel_Manager_Selection *sel, void *data, int
memcpy(tmp, data, size);
if (data_ret) *data_ret = tmp;
if (size_ret) *size_ret = size;
if (!data_ret) free(tmp);
}
}
else