Commit 01d65bc7 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

KMerMultiSegmenter: Just keep one KmerSegmenter.

If we overwrite the_kseg (in case it exists), it is definitely lost and we have a memory leak.
parent be15dd65
......@@ -338,6 +338,8 @@ KmerMultiSegmenter::KmerMultiSegmenter(Sequence seq, MultiGermline *multigermlin
if (keep_seg) {
if (the_kseg)
delete the_kseg;
the_kseg = kseg;
} else {
delete kseg;
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