diff --git a/client/X11/xf_cliprdr.c b/client/X11/xf_cliprdr.c index f8da24905..abcae72c8 100644 --- a/client/X11/xf_cliprdr.c +++ b/client/X11/xf_cliprdr.c @@ -1413,6 +1413,8 @@ xf_cliprdr_server_format_data_response(CliprdrClientContext* context, if (SrcSize == 0) { WLog_INFO(TAG, "skipping, empty data detected!!!"); + free(clipboard->respond); + clipboard->respond = NULL; return CHANNEL_RC_OK; }