--- plugins/scale.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/plugins/scale.c b/plugins/scale.c index 550f22e..76dedf8 100644 --- a/plugins/scale.c +++ b/plugins/scale.c @@ -506,8 +506,10 @@ getSlotAreas (CompScreen *s) return NULL; slotAreas = malloc (s->nOutputDev * sizeof (SlotArea)); - if (!slotAreas) + if (!slotAreas) { + free(size); return NULL; + } left = ss->nWindows; -- 1.5.2.3