From 448e870dd15202b1035744faf7af74a3da1da5d3 Mon Sep 17 00:00:00 2001 From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz> Date: Tue, 8 Jan 2019 09:31:54 +0100 Subject: [PATCH] fix optimize formal regexp --- alib2algo/src/regexp/simplify/RegExpOptimizeFormalPart.hpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/alib2algo/src/regexp/simplify/RegExpOptimizeFormalPart.hpp b/alib2algo/src/regexp/simplify/RegExpOptimizeFormalPart.hpp index eea105a8c3..5ea51c736b 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; } -- GitLab