From 7b30445d19438e2b0afa001c56d64bf76b440f2d Mon Sep 17 00:00:00 2001 From: Philippe Pepiot Date: Mon, 16 Nov 2009 00:51:11 +0100 Subject: [PATCH] Fix other memleak in infobar_draw_statustext() --- src/infobar.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/infobar.c b/src/infobar.c index 77a29b7..63c7cfc 100644 --- a/src/infobar.c +++ b/src/infobar.c @@ -229,9 +229,12 @@ infobar_draw_statustext(int sc, char *str) draw_text(infobar[sc].bar->dr, (sgeo[sc].width - SHADH) - textw(buf), FHINFOBAR, col, 0, buf); + free(buf); buf = _strdup(strwc); ++i; } + + free(buf); } barwin_refresh(infobar[sc].bar);