From: Po Lu <luangruo@yahoo.com>
Date: Mon, 7 Nov 2022 12:33:28 +0000 (+0800)
Subject: Add missing SAFE_FREE on XI 2.0 servers
X-Git-Tag: emacs-29.0.90~1616^2~248
X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d30a7c142df2c35f165bad34cc8f778a7389e032;p=emacs.git

Add missing SAFE_FREE on XI 2.0 servers

* src/xterm.c (xi_populate_device_from_info): Add missing
SAFE_FREE.
---

diff --git a/src/xterm.c b/src/xterm.c
index 1f14daa39f9..84438e85909 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -5400,6 +5400,7 @@ xi_populate_device_from_info (struct x_display_info *dpyinfo,
       xi_device->valuators = NULL;
       xi_device->scroll_valuator_count = 0;
 
+      SAFE_FREE ();
       return;
     }