X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/18212466471c01a3943e10436979c29234665825..2cbd078f5153288a39cbf046231a3870df8170cb:/src/scan-skel.l?ds=sidebyside diff --git a/src/scan-skel.l b/src/scan-skel.l index d860c08a..3cb2178a 100644 --- a/src/scan-skel.l +++ b/src/scan-skel.l @@ -16,8 +16,8 @@ You should have received a copy of the GNU General Public License along with Bison; see the file COPYING. If not, write to the Free - Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ %option nodefault noyywrap nounput never-interactive debug %option prefix="skel_" outfile="lex.yy.c" @@ -83,7 +83,14 @@ int skel_lex (void); \n lineno++; ECHO; [^@\n]+ ECHO; -<> free (outname); xfclose (yyout); return EOF; +<> { + if (outname) + { + free (outname); + xfclose (yyout); + } + return EOF; +} %% /*------------------------.