Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2016-02-15 04:18:49 +0300
committermichael-grunder <michael.grunder@gmail.com>2016-02-15 04:18:49 +0300
commitbc44c6fb6b12715deaabbaa9d3638805e2795910 (patch)
treeea2906c029a08fda19a477be5b94f62baf2f8d7b
parent9355604cd376eefccd7b9d91974756de441a292e (diff)
Use ZVAL_COPY_VALUE not ZVAL_DUP to fix leak
-rw-r--r--library.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/library.c b/library.c
index 84d06177..91c5b24e 100644
--- a/library.c
+++ b/library.c
@@ -1839,9 +1839,8 @@ PHP_REDIS_API int redis_mbulk_reply_raw(INTERNAL_FUNCTION_PARAMETERS, RedisSock
IF_MULTI_OR_PIPELINE() {
add_next_index_zval(z_tab, &z_multi_result);
} else {
- ZVAL_DUP(return_value, &z_multi_result);
+ ZVAL_COPY_VALUE(return_value, &z_multi_result);
}
- /*zval_copy_ctor(return_value); */
return 0;
}