fix an issue spotted by the Clang analyzer (leak in yacc/reader.c)

yacc/reader.c:1328:7: warning: Potential leak of memory pointed to by 'a_line'
      fprintf(f, ")\n# 0\n              ");
      ^~~~~~~

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16333 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Gabriel Scherer 2015-08-04 20:32:11 +00:00
parent 32511c53af
commit 1714cfa5ec
1 changed files with 1 additions and 0 deletions

View File

@ -1336,6 +1336,7 @@ loop:
fprintf(f, " : '%s))\n", plhs[nrules]->name);
if (sflag)
fprintf(f, "\n");
FREE(a_line);
return;
}
putc(c, f);