From 82b56db3d8fd8e0f69979161d18566bc972fbb21 Mon Sep 17 00:00:00 2001 From: tadam Date: Sat, 3 Apr 2010 02:12:43 +0000 Subject: [PATCH] Apply extremely trivial free() patch to WindowList. This is a tweak version of Fritz's patch to free a previously allocated pointer. --- ChangeLog | 4 ++++ fvwm/windowlist.c | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 466c793fc..e9ef59f20 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ Don't adjust a window's position unless it's actually greater than the screen's dimension (i.e., potentially placed off screen.) + 2010-03-30 Christoph Fritz + * fvwm/windowlist.c (CMD_WindowList): + Free allocated memory. + 2010-02-28 Thomas Adam * fvwm/move_resize.c (__resize_step): Don't explicitly send MotionNotify event during Resize (GeometryWindow) diff --git a/fvwm/windowlist.c b/fvwm/windowlist.c index 23bc889c4..8034563f3 100644 --- a/fvwm/windowlist.c +++ b/fvwm/windowlist.c @@ -604,6 +604,7 @@ void CMD_WindowList(F_CMD_ARGS) iconifiedList = malloc(numWindows*sizeof(t)); if (iconifiedList == NULL) { + free(windowList); return; } } -- 2.11.4.GIT