pacman/util.c: fix potential memory leak in indentprint

This commit is contained in:
Allan McRae 2014-12-22 00:05:16 +10:00
parent eac09e1d9f
commit f4796c905c
1 changed files with 1 additions and 0 deletions

View File

@ -284,6 +284,7 @@ void indentprint(const char *str, unsigned short indent, unsigned short cols)
cidx = indent;
if(!p || !len) {
free(wcstr);
return;
}