Commit 9ec1eafa authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

core/representative.cpp: delete cover_longest_run in a special case

Thanks to Valgrind.
parent 3378b6f6
......@@ -221,6 +221,10 @@ void KmerRepresentativeComputer::compute(bool try_hard) {
if (coverage < THRESHOLD_BAD_COVERAGE && ! try_hard) {
compute(true);
delete index[0];
if (cover_longest_run)
delete [] cover_longest_run;
return;
}
......
Supports Markdown
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