fix: freelines

This commit is contained in:
Renge 2022-03-03 22:03:41 -05:00
parent 8d471113ce
commit 61fc466429

View File

@ -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);
}