summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-06 12:35:11 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-06 12:35:11 +0100
commit1fa7d4a07bfffef77f7afbd4cd9b18141dddb543 (patch)
treecb27581516de572792518822c05176900c1c6a8b /src/modules
parentfa0608b50fb641517fd4cb51d93a734d47931658 (diff)
wl dnd - fix theoretical buf leak coverity found
fix CID 1403957
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/xwayland/dnd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/xwayland/dnd.c b/src/modules/xwayland/dnd.c
index ce7ac29..b8beb16 100644
--- a/src/modules/xwayland/dnd.c
+++ b/src/modules/xwayland/dnd.c
@@ -388,6 +388,12 @@ _xwl_pipe_read(void *data, Ecore_Fd_Handler *fdh)
388 } 388 }
389 if (len) 389 if (len)
390 p->buf = eina_binbuf_manage_new(buf, len, 0); 390 p->buf = eina_binbuf_manage_new(buf, len, 0);
391 else
392 {
393 _incr_update(p, 0);
394 free(buf);
395 return ECORE_CALLBACK_RENEW;
396 }
391 _incr_upload(p); 397 _incr_upload(p);
392 if (p->incr) 398 if (p->incr)
393 ecore_main_fd_handler_active_set(p->fdh, 0); 399 ecore_main_fd_handler_active_set(p->fdh, 0);