diff options
author | michael-grunder <michael.grunder@gmail.com> | 2015-03-05 19:54:46 +0300 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2015-05-06 01:18:01 +0300 |
commit | 97c9edc3aa164e2f444ee68faed0c691d2ecce2b (patch) | |
tree | 33b75f5101ace866bd3658f59e23128567344e46 /redis_array_impl.c | |
parent | 7ef7d0785493fc0d6fafead56c29d66b48c03c70 (diff) |
Sorted a memory leak in RedisArray and retabbed unit tests
Diffstat (limited to 'redis_array_impl.c')
-rw-r--r-- | redis_array_impl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/redis_array_impl.c b/redis_array_impl.c index 1c48d7a5..dc336674 100644 --- a/redis_array_impl.c +++ b/redis_array_impl.c @@ -461,6 +461,7 @@ ra_find_node(RedisArray *ra, const char *key, int key_len, int *out_pos TSRMLS_D efree(out); return NULL; } + efree(out); } else { /* hash */ hash = rcrc32(out, out_len); @@ -1019,7 +1020,6 @@ ra_move_string(const char *key, int key_len, zval *z_from, zval *z_to, long ttl static zend_bool ra_move_hash(const char *key, int key_len, zval *z_from, zval *z_to, long ttl TSRMLS_DC) { - zval z_fun_hgetall, z_fun_hmset, z_ret, z_ret_dest, *z_args[2]; /* run HGETALL on source */ @@ -1266,7 +1266,6 @@ ra_rehash_server(RedisArray *ra, zval *z_redis, const char *hostname, zend_bool void ra_rehash(RedisArray *ra, zend_fcall_info *z_cb, zend_fcall_info_cache *z_cb_cache TSRMLS_DC) { - int i; /* redistribute the data, server by server. */ |