[X2Go-Commits] [nx-libs] 105/219: mi/miexpose.c: add missing free()

git-admin at x2go.org git-admin at x2go.org
Sat Sep 28 12:10:31 CEST 2019


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch 3.6.x
in repository nx-libs.

commit c8520ac0aabb475d92ea6b60e3113f2999c04eb8
Author: Ulrich Sibiller <uli42 at gmx.de>
Date:   Thu Jun 20 23:14:09 2019 +0200

    mi/miexpose.c: add missing free()
---
 nx-X11/programs/Xserver/mi/miexpose.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/nx-X11/programs/Xserver/mi/miexpose.c b/nx-X11/programs/Xserver/mi/miexpose.c
index 274a8d4ce..40272f962 100644
--- a/nx-X11/programs/Xserver/mi/miexpose.c
+++ b/nx-X11/programs/Xserver/mi/miexpose.c
@@ -757,7 +757,10 @@ int what;
 	if (screenContext[i] == (GCPtr)NULL)
 	{
 	    if (!ResType && !(ResType = CreateNewResourceType(tossGC)))
+	    {
+		free(prect);
 		return;
+	    }
 	    screenContext[i] = CreateGC((DrawablePtr)pWin, (BITS32) 0,
 					(XID *)NULL, &status);
 	    if (!screenContext[i])

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git


More information about the x2go-commits mailing list