diff options
author | michael-grunder <michael.grunder@gmail.com> | 2014-06-20 08:48:16 +0400 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2015-05-06 01:02:04 +0300 |
commit | 7c54277e4e3a9cea09eaeb6c26ca0a7c0af2e375 (patch) | |
tree | f597eeb8a807fdb1aa9f87dca9b9df43d2b63696 /redis_cluster.h | |
parent | 55e1d54cd011474f9281a8ee9a9a8a9b099928e7 (diff) |
Refactoring, updated handling of MULTI commands
Minor formatting changes
Updated how we delete context variables, such that our context
pointers aren't always going to be a zval** array. This
introduces the possibility of creating a memory leak if we have
to abort a transaction due to a communications error, but this
can be handled later by attaching a void dtor(void*) callback.
Diffstat (limited to 'redis_cluster.h')
-rw-r--r-- | redis_cluster.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/redis_cluster.h b/redis_cluster.h index e4fa9523..45bc288b 100644 --- a/redis_cluster.h +++ b/redis_cluster.h @@ -40,15 +40,6 @@ clusterFoldItem *_item = c->multi_head, *_tmp; \ while(_item) { \ _tmp = _item->next; \ - if(_item->ctx) { \ - zval **z_arr = (zval**)_item->ctx; int i=0; \ - while(z_arr[i]!=NULL) { \ - zval_dtor(z_arr[i]); \ - efree(z_arr[i]); \ - i++; \ - } \ - efree(z_arr); \ - } \ efree(_item); \ _item = _tmp; \ } \ |