Skip to content

Commit

Permalink
Potential fix for memory leaks when processing BAM files
Browse files Browse the repository at this point in the history
  • Loading branch information
ch4rr0 committed Feb 27, 2024
1 parent a43fa6f commit 2c91155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1426,7 +1426,7 @@ int BAMPatternSource::decompress_bgzf_block(uint8_t *dst, size_t dst_len, uint8_
return ret;
}

return inflateReset(&stream);
return inflateEnd(&stream);
}

bool BAMPatternSource::parse(Read& ra, Read& rb, TReadId rdid) const {
Expand Down

0 comments on commit 2c91155

Please sign in to comment.