diff options
author | Mike Blumenkrantz <zmike@osg.samsung.com> | 2017-07-12 12:00:52 -0400 |
---|---|---|
committer | Mike Blumenkrantz <zmike@osg.samsung.com> | 2017-07-12 11:59:21 -0400 |
commit | 39c70f1fa7dca2c8b914736a1dbde8a12b2e4b03 (patch) | |
tree | 19a9ec7d845a98eb872ddd5b9f157f22b4016e93 /src/lib/efl_wl/x11.x | |
parent | bad0d9dbd677087895cf09ca4108f4c7c28fc621 (diff) |
efl-wl: free x11 pipe read buf on read fail
CID 1377520
Diffstat (limited to 'src/lib/efl_wl/x11.x')
-rw-r--r-- | src/lib/efl_wl/x11.x | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/efl_wl/x11.x b/src/lib/efl_wl/x11.x index 4538e7e24d..f5220c1428 100644 --- a/src/lib/efl_wl/x11.x +++ b/src/lib/efl_wl/x11.x | |||
@@ -273,8 +273,12 @@ x11_pipe_read(void *data, Ecore_Fd_Handler *fdh) | |||
273 | return ECORE_CALLBACK_RENEW; | 273 | return ECORE_CALLBACK_RENEW; |
274 | } | 274 | } |
275 | if (len) | 275 | if (len) |
276 | p->buf = eina_binbuf_manage_new(buf, len, 0); | 276 | { |
277 | _incr_upload(p); | 277 | p->buf = eina_binbuf_manage_new(buf, len, 0); |
278 | _incr_upload(p); | ||
279 | } | ||
280 | else | ||
281 | free(buf); | ||
278 | if (p->incr) | 282 | if (p->incr) |
279 | ecore_main_fd_handler_active_set(p->fdh, 0); | 283 | ecore_main_fd_handler_active_set(p->fdh, 0); |
280 | else | 284 | else |