diff --git a/alib2algo/src/regexp/simplify/RegExpOptimizeFormalPart.hpp b/alib2algo/src/regexp/simplify/RegExpOptimizeFormalPart.hpp index eea105a8c38a3d0a069620aa37b66012b227da76..5ea51c736bbd8853195488364ffed8d9be8dd7a5 100644 --- a/alib2algo/src/regexp/simplify/RegExpOptimizeFormalPart.hpp +++ b/alib2algo/src/regexp/simplify/RegExpOptimizeFormalPart.hpp @@ -494,7 +494,6 @@ bool RegExpOptimize::V4( FormalRegExpElement < SymbolType > * & n ) { node->setChild ( FormalRegExpAlternation < SymbolType >( std::move ( leftIte->getElement ( ) ), std::move ( rightIte->getElement ( ) ) ) ); - delete child; return true; } @@ -560,8 +559,6 @@ bool RegExpOptimize::V10( FormalRegExpElement < SymbolType > * & n ) { alt->setLeft ( std::move ( leftIte->getChild ( ) ) ); alt->setRight ( std::move ( rightIte->getChild ( ) ) ); - delete leftIte; - delete rightIte; return true; }