diff options
author | Stanley Cheung <stanley.cheung@gmail.com> | 2018-01-23 14:40:43 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-23 14:40:43 -0800 |
commit | 981f3424233687627b2a0e53445e9bf0ca2c0218 (patch) | |
tree | a437b39e0fb19e75e5af35074d8f12cf086e0ae9 | |
parent | ef7d312be3ca33418bcc290a9a2d73057dc9bfc4 (diff) | |
parent | 8a845937eb7964fcf3791ad6429d44f8d6eae2c3 (diff) |
Merge pull request #14129 from ZhouyihaiDing/channel_reuse_leak
php: fix channel reuse doesn't free allocated wrapper
-rw-r--r-- | src/php/ext/grpc/channel.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/php/ext/grpc/channel.c b/src/php/ext/grpc/channel.c index 11b6cfbae7..a9d7374f2a 100644 --- a/src/php/ext/grpc/channel.c +++ b/src/php/ext/grpc/channel.c @@ -318,6 +318,10 @@ PHP_METHOD(Channel, __construct) { channel->wrapper->creds_hashstr = NULL; } free(channel->wrapper->creds_hashstr); + free(channel->wrapper->key); + free(channel->wrapper->target); + free(channel->wrapper->args_hashstr); + free(channel->wrapper); channel->wrapper = le->channel; } } |