+
Skip to content

Fixed BWTIncFree() memory leaks #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Fixed BWTIncFree() memory leaks #37

wants to merge 1 commit into from

Conversation

GwenIves
Copy link
Contributor

@GwenIves GwenIves commented Dec 9, 2014

Removed memory leaks from BWTIncFree()

jmarshall pushed a commit to jmarshall/bwa that referenced this pull request Jun 28, 2017
[Based on PR lh3#37 with the additions below.]

Don't free non-malloced items in BWTFree().  If BWTCreate() is ever
called with a non-NULL decodeTable, BWTFree() will need to not free
decodeTable -- see FIXME comment.

Close packedFile in BWTIncConstructFromPacked() in the normal case.
Ignore it in error cases, as they immediately call exit() anyway.
@lh3 lh3 closed this in #139 Jul 30, 2017
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.

1 participant
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载