Fix memory leak on the @pm operator

Binary tree was not being cleaned right, now looking (and cleaning)
the sibling nodes.
This commit is contained in:
Felipe Zimmerle
2016-06-16 10:37:52 -03:00
parent 1b35e57c4e
commit 7be5fde62a
2 changed files with 35 additions and 14 deletions

View File

@@ -41,6 +41,7 @@ class Pm : public Operator {
bool init(const std::string &file, std::string *error) override;
void postOrderTraversal(acmp_btree_node_t *node);
void cleanup(acmp_node_t *n);
protected:
ACMP *m_p;