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 strings pointed to in the NULL-terminated array lines, then */
|
||||||
/* frees the array. Does not use errmsg because it always succeeds. */
|
/* frees the array. Does not use errmsg because it always succeeds. */
|
||||||
{
|
{
|
||||||
char *line;
|
char **line;
|
||||||
|
|
||||||
for (line = *lines; *line; ++line)
|
for (line = lines; *line; ++line)
|
||||||
free(line);
|
free(*line);
|
||||||
|
|
||||||
free(lines);
|
free(lines);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user