discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=39c70f1fa7dca2c8b914736a1dbde8a12b2e4b03

commit 39c70f1fa7dca2c8b914736a1dbde8a12b2e4b03
Author: Mike Blumenkrantz <[email protected]>
Date:   Wed Jul 12 12:00:52 2017 -0400

    efl-wl: free x11 pipe read buf on read fail
    
    CID 1377520
---
 src/lib/efl_wl/x11.x | 8 ++++++--
 1 file 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)
         return ECORE_CALLBACK_RENEW;
      }
    if (len)
-     p->buf = eina_binbuf_manage_new(buf, len, 0);
-   _incr_upload(p);
+     {
+        p->buf = eina_binbuf_manage_new(buf, len, 0);
+        _incr_upload(p);
+     }
+   else
+     free(buf);
    if (p->incr)
      ecore_main_fd_handler_active_set(p->fdh, 0);
    else

-- 


Reply via email to