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

Fixed race condition potentially resulting in referencing freed registry #278

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

mojyack
Copy link
Contributor

@mojyack mojyack commented Oct 24, 2024

In #274, I added release_registry in conn_create, but forgot to lock entry->mutex.
Let's fix this by holding the mutex longer.
Note that it is not possible to release the mutex once and re-lock it just before release_registry. This is because of the possibility of deadlock.

Also fixed a bug where registry->mutex is referenced even though the registry is NULL.

@paullouisageneau paullouisageneau merged commit 85f88f4 into paullouisageneau:master Oct 24, 2024
3 checks passed
@paullouisageneau
Copy link
Owner

Released as v1.5.7

@mojyack
Copy link
Contributor Author

mojyack commented Oct 24, 2024

Thanks!

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