From f4796c905ca70f87461feb8e1fca3dc4afbe1217 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Mon, 22 Dec 2014 00:05:16 +1000 Subject: pacman/util.c: fix potential memory leak in indentprint --- src/pacman/util.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/pacman') diff --git a/src/pacman/util.c b/src/pacman/util.c index 36f4414a..f63ac1be 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -284,6 +284,7 @@ void indentprint(const char *str, unsigned short indent, unsigned short cols) cidx = indent; if(!p || !len) { + free(wcstr); return; } -- cgit v1.2.3-70-g09d2