Skip to content

Commit

Permalink
Fix memory leak in tree_classdef_property
Browse files Browse the repository at this point in the history
Comments in classdef properties were leaking

* pt-classdef.cc: Plug memory leak
  • Loading branch information
pvilhelm committed Nov 4, 2023
1 parent e21a94e commit e4be167
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libinterp/parse-tree/pt-classdef.cc
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ tree_classdef_property::tree_classdef_property (tree_arg_validation *av,
tree_classdef_property::~tree_classdef_property ()
{
delete m_av;
delete m_comments;
}

tree_identifier *tree_classdef_property::ident ()
Expand Down

0 comments on commit e4be167

Please sign in to comment.