diff options
author | Derek Foreman <derekf@osg.samsung.com> | 2016-03-31 13:55:21 -0500 |
---|---|---|
committer | Derek Foreman <derekf@osg.samsung.com> | 2016-03-31 14:02:46 -0500 |
commit | fc65a8f306834000ed3cee39ba011063dc1d130c (patch) | |
tree | 3a107d5f4e2bbe2123d00cdc587621e82fdb30b1 | |
parent | c27e033d6608b04472088308aac712e03d50f510 (diff) | |
download | enlightenment-devs/derekf/clipboard.tar.gz |
xwayland: Don't leak memory on dnd read failuredevs/derekf/clipboard
-rw-r--r-- | src/modules/xwayland/dnd.c | 1 |
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); } |