diff options
author | Nicolas Favre-Felix <n.favrefelix@gmail.com> | 2012-01-31 00:43:09 +0400 |
---|---|---|
committer | Nicolas Favre-Felix <n.favrefelix@gmail.com> | 2012-01-31 00:43:09 +0400 |
commit | 5d8839f15e42592020635e23d506a236273227a3 (patch) | |
tree | 19dc9b27e7ec7eaa4f782f880afb501af84e3c2d /library.c | |
parent | 43571d1a43f6909cd720086d32279f61c463c916 (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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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); } } |