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:
authorNicolas Favre-Felix <n.favrefelix@gmail.com>2012-01-31 00:43:09 +0400
committerNicolas Favre-Felix <n.favrefelix@gmail.com>2012-01-31 00:43:09 +0400
commit5d8839f15e42592020635e23d506a236273227a3 (patch)
tree19dc9b27e7ec7eaa4f782f880afb501af84e3c2d /library.c
parent43571d1a43f6909cd720086d32279f61c463c916 (diff)
Fixed small leak with info().
Thanks to @kotas for reporting and @chobie for fixing. This closes GitHub issue #125.
Diffstat (limited to 'library.c')
-rw-r--r--library.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/library.c b/library.c
index c924cf28..feeca694 100644
--- a/library.c
+++ b/library.c
@@ -475,9 +475,7 @@ PHPAPI void redis_info_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_s
IF_MULTI_OR_PIPELINE() {
add_next_index_zval(z_tab, z_multi_result);
} else {
- *return_value = *z_multi_result;
- zval_copy_ctor(return_value);
- efree(z_multi_result);
+ RETVAL_ZVAL(z_multi_result, 0, 1);
}
}