We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ec490e commit 345719bCopy full SHA for 345719b
src/as4.c
@@ -404,6 +404,10 @@ int main(int argc, char **argv)
404
}
405
/* Next line - increment FILELINE. */
406
FILELINE++;
407
+ /* Free line and set len to zero - otherwise we are leaking memory. */
408
+ free(line);
409
+ line = NULL;
410
+ len = 0;
411
/* And get another line. */
412
linelen = getline(&line, &len, input);
413
0 commit comments