V0.8: fix memory leak in recent patch.

This commit is contained in:
Cary R 2008-06-25 11:37:35 -07:00 committed by Stephen Williams
parent 22ad8c42bc
commit 6df10a082b
1 changed files with 1 additions and 1 deletions

View File

@ -459,7 +459,7 @@ static void def_match()
calloc(1, sizeof(struct include_stack_t));
isp->str = cur->value;
isp->next = istack;
isp->path = strdup(istack->path);
isp->path = istack->path;
isp->lineno = istack->lineno;
istack->yybs = YY_CURRENT_BUFFER;
istack = isp;