From: Po Lu Date: Sat, 4 Jun 2022 02:05:44 +0000 (+0800) Subject: Fix leak of toplevel data X-Git-Tag: emacs-29.0.90~1910^2~251 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=63b3999562d5d76a01b71c6caaa419b97dbc6fa4;p=emacs.git Fix leak of toplevel data * src/xterm.c (x_dnd_compute_toplevels): Make sure to free `data'. --- 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; }