diff --git a/hw2/src/par.c b/hw2/src/par.c index 5b9cd2a..2fabdb9 100644 --- a/hw2/src/par.c +++ b/hw2/src/par.c @@ -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); }