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 double-free issue #1

Open
wants to merge 1 commit into
base: 2bde72ebb396c03b7d9a8cfd62b96659a14134ce
Choose a base branch
from

Conversation

bytbox
Copy link
Owner

@bytbox bytbox commented Jan 29, 2012

Calling Shutdown twice yields a double-free - likewise, calling Init twice will have unpredictable results. This changes the semantics of tb_shutdown to mean "ensure already shut down", and has init return a proper error on duplicate call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant