Don't leak a Node in C::classHandler()
Delete the copied node if we end up not using it.
This commit is contained in:
parent
fe8c6fad44
commit
2ce15d3e6a
1 changed files with 2 additions and 0 deletions
|
|
@ -1323,6 +1323,8 @@ ready:
|
|||
Setattr(new_node, "sym:symtab", Getattr(n, "symtab"));
|
||||
set_nodeType(new_node, "cdecl");
|
||||
appendChild(n, new_node);
|
||||
} else {
|
||||
Delete(new_node);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue