summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/xwayland/dnd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/xwayland/dnd.c b/src/modules/xwayland/dnd.c
index c16b0a2e89..47c5d9569d 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);
}