Commit 8a216586 authored by Mikaël Salson's avatar Mikaël Salson

vidjil.cpp: Don't use exit()

See 1a7bb7f8 for reason why.

Fix (in part?) #3771
parent 444517fa
Pipeline #66374 passed with stages
in 31 minutes and 9 seconds
......@@ -9,4 +9,4 @@ $ Two times for the definition
1:add_flag.*__only_on_exit__clean_memory
$ And two other times, just before exiting
2:if .__only_on_exit__clean_memory. .* exit.0.
2:if .__only_on_exit__clean_memory. .* return.0.
......@@ -983,7 +983,7 @@ int main (int argc, char **argv)
cout << " " << key << " " << it->second.name << endl ;
}
if (__only_on_exit__clean_memory) { delete multigermline; } exit(0);
if (__only_on_exit__clean_memory) { delete multigermline; } return 0;
}
......@@ -1654,7 +1654,7 @@ int main (int argc, char **argv)
outputVidjil->out(out_json);
//$$ Clean
if (__only_on_exit__clean_memory) { delete multigermline ; delete reads; } exit(0) ;
if (__only_on_exit__clean_memory) { delete multigermline ; delete reads; } return 0 ;
}
//$$ end
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