Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2014-12-22 00:05:16 +1000
committerAllan McRae <allan@archlinux.org>2014-12-24 11:19:29 +1000
commitf4796c905ca70f87461feb8e1fca3dc4afbe1217 (patch)
tree8bc480e7d993211a3078d08c89cd1426365708fb
parenteac09e1d9fd445eb004d1419717c6e458f1fd019 (diff)
pacman/util.c: fix potential memory leak in indentprint
-rw-r--r--src/pacman/util.c1
1 files changed, 1 insertions, 0 deletions
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;
}