fix memory leak
This commit is contained in:
parent
09186df7b1
commit
6b8f7241bb
1 changed files with 4 additions and 1 deletions
|
|
@ -243,7 +243,10 @@ public:
|
|||
redirect(arg* in) { type=_obj::_redirect; target=in; here_document=nullptr; }
|
||||
redirect(std::string strop, arg* in) { type=_obj::_redirect; op=strop; target=in; here_document=nullptr; }
|
||||
redirect(std::string strop, arg* in, arg* doc) { type=_obj::_redirect; op=strop; target=in; here_document=doc; }
|
||||
~redirect() { if(target != nullptr) delete target; }
|
||||
~redirect() {
|
||||
if(target != nullptr) delete target;
|
||||
if(here_document != nullptr) delete here_document;
|
||||
}
|
||||
|
||||
std::string generate(int ind);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue