Skip to content

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