summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2014-12-21 15:05:16 +0100
committerAllan McRae <allan@archlinux.org>2014-12-24 02:19:29 +0100
commitf4796c905ca70f87461feb8e1fca3dc4afbe1217 (patch)
tree8bc480e7d993211a3078d08c89cd1426365708fb /src
parenteac09e1d9fd445eb004d1419717c6e458f1fd019 (diff)
downloadpacman-f4796c905ca70f87461feb8e1fca3dc4afbe1217.tar.gz
pacman-f4796c905ca70f87461feb8e1fca3dc4afbe1217.tar.xz
pacman/util.c: fix potential memory leak in indentprint
Diffstat (limited to 'src')
-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;
}