discomfitor pushed a commit to branch enlightenment-0.20.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=4b643d8c96c2eed111f119b1aab8fda81cd66845

commit 4b643d8c96c2eed111f119b1aab8fda81cd66845
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Thu Mar 31 13:55:21 2016 -0500

    xwayland: Don't leak memory on dnd read failure
---
 src/modules/xwayland/dnd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/modules/xwayland/dnd.c b/src/modules/xwayland/dnd.c
index 4aad385..322f276 100644
--- a/src/modules/xwayland/dnd.c
+++ b/src/modules/xwayland/dnd.c
@@ -313,6 +313,7 @@ _xwl_pipe_read(void *data, Ecore_Fd_Handler *fdh)
    len = read(ecore_main_fd_handler_fd_get(fdh), (void*)buf, INCR_CHUNK_SIZE);
    if (len < 0)
      {
+        free(buf);
         _incr_update(p, 0);
         eina_hash_del_by_key(pipes, &p->win);
      }

-- 


Reply via email to