From ffbfbc1c8c1e5d874b04cef0cc9439ce17377212 Mon Sep 17 00:00:00 2001 From: freddychoi <39047965+freddychoi@users.noreply.github.com> Date: Mon, 7 May 2018 09:11:40 +0100 Subject: [PATCH] Bug fix for segmentation fault Symal generates error message "free(): invalid pointer" at end of execution due to bug on line 510. Bug was harmless but best to get rid of it. --- symal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/symal.cpp b/symal.cpp index c56f5a5..11b1cf1 100644 --- a/symal.cpp +++ b/symal.cpp @@ -507,7 +507,7 @@ int main(int argc, char** argv) delete inp; } if (out != &std::cout) { - delete inp; + delete out; } } catch (const std::exception &e) { cerr << e.what() << std::endl;