From 48058efcdf845138671b5d65b9d84c5da435cea4 Mon Sep 17 00:00:00 2001 From: Alexander Zakharov Date: Thu, 17 Nov 2016 16:16:29 +0300 Subject: [PATCH] Fix double free --- xclip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xclip.c b/xclip.c index 1ee04c4..8a433bd 100644 --- a/xclip.c +++ b/xclip.c @@ -611,6 +611,7 @@ xclip_handle_SelectionNotify(XSelectionEvent * event) XSelectInput(g_display, g_wnd, (wa.your_event_mask | PropertyChangeMask)); } XFree(data); + data = NULL; g_incr_target = event->target; g_waiting_for_INCR = 1; goto end;