summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2011-05-22 15:15:18 +0200
committerPieter Noordhuis <pcnoordhuis@gmail.com>2011-05-22 15:15:18 +0200
commit875a20939932045ccae4fc6a67db7c26d94f658d (patch)
treebf320b1a2e2b0006d3d96fa7350429299ea8b59e
parentd90dca1e810e96adf035c28d215d203e0bdfcea7 (diff)
Add note about freeReplyObject and the asynchronous API
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index e7d588b..6cf7b1c 100644
--- a/README.md
+++ b/README.md
@@ -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
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
To disconnect and free the context the following function can be used: