discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=5c5dc3d9f880e486f39235d4127232c97bede82a

commit 5c5dc3d9f880e486f39235d4127232c97bede82a
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 c16b0a2..47c5d95 100644
--- a/src/modules/xwayland/dnd.c
+++ b/src/modules/xwayland/dnd.c
@@ -311,6 +311,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