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:
authorAdam Harvey <aharvey@php.net>2015-12-03 04:32:27 +0300
committermichael-grunder <michael.grunder@gmail.com>2016-02-14 00:20:35 +0300
commitc40fc1d807d35ebb3da0fc0231fcd97f37e785ed (patch)
tree71779c5a92e4ef88ffba88d002a495127030639e /redis_array.c
parentb09e07b37ceace11b0a711c9e0bfc15996f071f2 (diff)
Fix memory leak in redis_serialize().
redis_serialize() leaks the zend_string within z_copy in the redis_sock->serializer == REDIS_SERIALIZER_NONE case when z is not an IS_STRING. Instead, redis_serialize() should take a copy of the string, return that with the flag telling the caller to free the string when it's done with it, and destroy z_copy.
Diffstat (limited to 'redis_array.c')
0 files changed, 0 insertions, 0 deletions