diff options
author | Allan McRae <allan@archlinux.org> | 2014-12-22 00:05:16 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-12-24 11:19:29 +1000 |
commit | f4796c905ca70f87461feb8e1fca3dc4afbe1217 (patch) | |
tree | 8bc480e7d993211a3078d08c89cd1426365708fb | |
parent | eac09e1d9fd445eb004d1419717c6e458f1fd019 (diff) | |
download | pacman-f4796c905ca70f87461feb8e1fca3dc4afbe1217.tar.xz |
pacman/util.c: fix potential memory leak in indentprint
-rw-r--r-- | src/pacman/util.c | 1 |
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; } |