Skip to content

Fix the memory leak in _RecursiveLock #41

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

Merged
merged 1 commit into from
Jul 11, 2015

Conversation

tokorom
Copy link
Contributor

@tokorom tokorom commented Jul 11, 2015

I encountered a memory leak problem.

I think,

  • pthread_mutexattr_destroy and pthread_mutex_destroy does not release the allocated memories.
  • UnsafeMutablePointer.alloc first argument is not memory size. this argument's header comment is Allocate memory fornumobjects of type T.

I tried to fix that points.

inamiy added a commit that referenced this pull request Jul 11, 2015
Fix the memory leak in _RecursiveLock
@inamiy inamiy merged commit 103ebeb into ReactKit:master Jul 11, 2015
@inamiy
Copy link
Member

inamiy commented Jul 11, 2015

Great catch! Thank you 😊

@inamiy inamiy added the bug label Jul 11, 2015
@inamiy inamiy added this to the 3.3.1 milestone Jul 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants