mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 00:08:50 -05:00
pacman/util.c: fix potential memory leak in indentprint
This commit is contained in:
parent
eac09e1d9f
commit
f4796c905c
@ -284,6 +284,7 @@ void indentprint(const char *str, unsigned short indent, unsigned short cols)
|
|||||||
cidx = indent;
|
cidx = indent;
|
||||||
|
|
||||||
if(!p || !len) {
|
if(!p || !len) {
|
||||||
|
free(wcstr);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user