diff options
-rw-r--r-- | text-utils/pg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/text-utils/pg.c b/text-utils/pg.c index ab7a85a95..c00b7371f 100644 --- a/text-utils/pg.c +++ b/text-utils/pg.c @@ -569,8 +569,10 @@ static int getcount(char *cmdstr) } else *(buf + strlen(buf) - 1) = '\0'; } - if (*buf == '\0') + if (*buf == '\0') { + free(buf); return 1; + } if (buf[0] == '-' && buf[1] == '\0') { i = -1; } else { |