Hi, In yacc(1) remove one null check before free(). This has previously been done for other files so this instance in get_line() was probably missed.
Older example: http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/yacc/output.c?f=h#rev1.25 - Michael Index: reader.c =================================================================== RCS file: /cvs/src/usr.bin/yacc/reader.c,v retrieving revision 1.34 diff -u -p -u -r1.34 reader.c --- reader.c 25 May 2017 20:11:03 -0000 1.34 +++ reader.c 8 Aug 2017 00:43:17 -0000 @@ -128,10 +128,8 @@ get_line(void) int c, i; if (saw_eof || (c = getc(f)) == EOF) { - if (line) { - free(line); - line = 0; - } + free(line); + line = NULL; cptr = 0; saw_eof = 1; return;