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

Less surprising behaviour in redisFree() and freeReplyObject() #246

Merged
merged 2 commits into from
May 29, 2014

Conversation

dmelani
Copy link
Contributor

@dmelani dmelani commented May 29, 2014

Make redisFree() and freeReplyObject() less surprising by behaving just
like free(). That is, don't crash when passing in NULL.

Make redisFree() and freeReplyObject() less surprising by behaving just
like free(). That is, don't crash when passing in NULL.
@pietern
Copy link
Contributor

pietern commented May 29, 2014

Can you add a test for these as well? I want to make sure this behavior doesn't break after refactoring.

Test that redisFree() and freeReplyObject() do not crash when NULL is
passed in.
@dmelani
Copy link
Contributor Author

dmelani commented May 29, 2014

I've added the tests, but the test conditions are a bit silly. I mean, the return type is void and they either crash or work, so it's the best I could think of without modifying the test framework.

@pietern
Copy link
Contributor

pietern commented May 29, 2014

I think that's fine. A crashing test is a failing test ;)

Merging the code. Thanks for your contribution.

pietern added a commit that referenced this pull request May 29, 2014
Less surprising behaviour in redisFree() and freeReplyObject()
@pietern pietern merged commit 2602e1b into redis:master May 29, 2014
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