fix: freelines
This commit is contained in:
parent
8d471113ce
commit
61fc466429
|
@ -252,10 +252,10 @@ static void freelines(char **lines)
|
|||
/* Frees the strings pointed to in the NULL-terminated array lines, then */
|
||||
/* frees the array. Does not use errmsg because it always succeeds. */
|
||||
{
|
||||
char *line;
|
||||
char **line;
|
||||
|
||||
for (line = *lines; *line; ++line)
|
||||
free(line);
|
||||
for (line = lines; *line; ++line)
|
||||
free(*line);
|
||||
|
||||
free(lines);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user