Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
8a216586
Commit
8a216586
authored
Mar 04, 2019
by
Mikaël Salson
Browse files
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
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
algo/tests/should-get-tests/00-clean-memory-on-exit.should-get
View file @
8a216586
...
...
@@ -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.
algo/vidjil.cpp
View file @
8a216586
...
...
@@ -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
Mikaël Salson
@mikael-s
mentioned in issue
#3771 (closed)
·
Mar 04, 2019
mentioned in issue
#3771 (closed)
mentioned in issue #3771
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment