From 7c54277e4e3a9cea09eaeb6c26ca0a7c0af2e375 Mon Sep 17 00:00:00 2001 From: michael-grunder Date: Thu, 19 Jun 2014 21:48:16 -0700 Subject: 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. --- redis_cluster.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'redis_cluster.h') 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; \ } \ -- cgit v1.2.3