Skip to content
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

Fix memory leak of pthread_key_t pointer #1428

Merged
merged 1 commit into from
Sep 29, 2017
Merged

Fix memory leak of pthread_key_t pointer #1428

merged 1 commit into from
Sep 29, 2017

Conversation

chrisamanse
Copy link
Contributor

@chrisamanse chrisamanse commented Sep 29, 2017

The allocated UnsafeMutablePointer<pthread_key_t> was never deallocated, therefore causing a memory leak. Calling deallocate(capacity: 1) in a deferred block fixes the leak.

The if statement was replaced with a guard statement.

The exit status of ./scripts/all-tests.sh is 0.

@kzaher kzaher merged commit bd5a965 into ReactiveX:develop Sep 29, 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.

2 participants