[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
%destructor doesn't destruct what can be destructed by user actions
From: |
Setzer, Sebastian \(ext\) |
Subject: |
%destructor doesn't destruct what can be destructed by user actions |
Date: |
Tue, 27 Feb 2007 19:21:41 +0100 |
Hi,
The bison-manual (for example
http://www.gnu.org/software/bison/manual/html_mono/bison.html) states:
"Right-hand size symbols of a rule that explicitly triggers a syntax
error via YYERROR are not discarded automatically. As a rule of thumb,
destructors are invoked only when user actions cannot manage the
memory."
Should be "Right-hand side..."?
In the Calc++ - example, this user-action doesn't free the memory:
| "identifier" { $$ = driver.variables[*$1]; }
so this example will leak?
Best regards,
Sebastian Setzer
- %destructor doesn't destruct what can be destructed by user actions,
Setzer, Sebastian \(ext\) <=