[pacman-dev] [PATCH] pacman/util.c: fix potential memory leak in indentprint
21 Dec
2014
21 Dec
'14
4:05 p.m.
--- src/pacman/util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pacman/util.c b/src/pacman/util.c index 36f4414..f63ac1b 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; } -- 2.2.0
3654
Age (days ago)
3654
Last active (days ago)
0 comments
1 participants
participants (1)
-
Allan McRae