Skip to content

Avoid a potential double free on failure, in bed_read.#2026

Merged
daviesrob merged 1 commit into
samtools:developfrom
jkbonfield:bedidx-mem
Apr 12, 2024
Merged

Avoid a potential double free on failure, in bed_read.#2026
daviesrob merged 1 commit into
samtools:developfrom
jkbonfield:bedidx-mem

Conversation

@jkbonfield

Copy link
Copy Markdown
Contributor

If we run out of memory while calling bed_index then it rightly fails, but in doing so frees ks and str.vs twice. Under normal conditions there were no memory errors.

This is a minor error handling glitch that arrived with #1962.

If we run out of memory while calling bed_index then it rightly
fails, but in doing so frees ks and str.vs twice.  Under normal
conditions there were no memory errors.

This is a minor error handling glitch that arrived with samtools#1962.
@daviesrob daviesrob merged commit c812838 into samtools:develop Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants