From 63b3999562d5d76a01b71c6caaa419b97dbc6fa4 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sat, 4 Jun 2022 10:05:44 +0800 Subject: [PATCH] Fix leak of toplevel data * src/xterm.c (x_dnd_compute_toplevels): Make sure to free `data'. --- src/xterm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xterm.c b/src/xterm.c index 99aa0ae9290..d5f45fbc943 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -2961,6 +2961,9 @@ x_dnd_compute_toplevels (struct x_display_info *dpyinfo) SAFE_FREE (); #endif + if (data) + XFree (data); + return 0; } -- 2.39.2