Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
875a2093
Commit
875a2093
authored
May 22, 2011
by
Pieter Noordhuis
Browse files
Add note about freeReplyObject and the asynchronous API
parent
d90dca1e
Changes
1
Show whitespace changes
Inline
Side-by-side
README.md
View file @
875a2093
...
@@ -116,6 +116,12 @@ Note that this function will take care of freeing sub-replies objects
...
@@ -116,6 +116,12 @@ Note that this function will take care of freeing sub-replies objects
contained in arrays and nested arrays, so there is no need for the user to
contained in arrays and nested arrays, so there is no need for the user to
free the sub replies (it is actually harmful and will corrupt the memory).
free the sub replies (it is actually harmful and will corrupt the memory).
**Important:**
the current version of hiredis (0.10.0) free's replies when the
asynchronous API is used. This means you should not call
`freeReplyObject`
when
you use this API. The reply is cleaned up by hiredis _after_ the callback
returns. This behavior will probably change in future releases, so make sure to
keep an eye on the changelog when upgrading (see issue #39).
### Cleaning up
### Cleaning up
To disconnect and free the context the following function can be used:
To disconnect and free the context the following function can be used:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment