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
devs/stefan/ci-test
Stefan Schmidt 3 years ago
parent c02dcf6966
commit 87c8e2718c
  1. 1
      src/lib/elementary/efl_ui_selection_manager.c

@ -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

Loading…
Cancel
Save