summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2008-02-10 12:34:48 +0100
committerDanny Baumann <dannybaumann@web.de>2008-02-10 12:34:48 +0100
commitfa33a087e5560ad1184eb8bf9c51d7304b5d28b5 (patch)
tree6f697e05b7165177f5cb43ed07a6fa9fcd2a1195
parent9e2f1a97ad0d3b042e2eb8c8342fcd7e7458f30c (diff)
downloadgroup-fa33a087e5560ad1184eb8bf9c51d7304b5d28b5.tar.gz
group-fa33a087e5560ad1184eb8bf9c51d7304b5d28b5.tar.bz2
Plug minor potential memleak.
-rw-r--r--group.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/group.c b/group.c
index 0cd6927..f83d252 100644
--- a/group.c
+++ b/group.c
@@ -648,7 +648,10 @@ groupAddWindowToGroup (CompWindow *w,
g->windows = malloc (sizeof (CompWindow *));
if (!g->windows)
+ {
+ free (g);
return;
+ }
g->windows[0] = w;
g->screen = w->screen;