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 for valgrind's "Mismatched free() / delete / delete []" during streaming deserialization #90

Closed
wants to merge 3 commits into from

Conversation

cypres
Copy link

@cypres cypres commented Oct 27, 2011

When running the streaming deserialization example through valgrind you get warnings about "Mismatched free() / delete / delete []". Issue #77 also references this error.

It's easy to fix, just don't reset if the auto_ptr contains a null pointer.

When doing streaming deserialization, valgrind complains about mismatched free()...
It's caused by calls to auto_ptr::free for zones that are null pointers.
@nobu-k
Copy link
Member

nobu-k commented Jul 29, 2012

Thank you for your patch! I confirmed that it removed the warning. I merged this pull request to msgpack/msgpack-c.git.

@nobu-k nobu-k closed this Jul 29, 2012
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.

None yet

2 participants