Commit 6662ba7c authored by Seppia's avatar Seppia

Missing memory deallocation

input string was not properly deallocated if previously reallocated.
parent 55c1f446
......@@ -283,6 +283,8 @@ void xor (Opts* opzioni) {
if (opzioni->input) {
fclose (mex);
} else if (!opzioni->input) {
free (input);
}
if (opzioni->output) {
......@@ -480,6 +482,8 @@ void bluh (Opts* opzioni) {
if (opzioni->input) {
fclose (mex);
} else if (!opzioni->input) {
free (input);
}
if (opzioni->output) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment