diff options
author | Zhouyihai Ding <ddyihai@google.com> | 2018-01-13 16:25:28 -0800 |
---|---|---|
committer | Zhouyihai Ding <ddyihai@google.com> | 2018-01-16 08:06:49 -0800 |
commit | b6cdfca30a5f09975ee7789a66d5b248f92b5c50 (patch) | |
tree | 7d9674f6a83e00c38e87811e73911af9f8df5ba9 /src/php | |
parent | e1e562eb171c81fad24176e898cc4e722bee227b (diff) |
php channel: fix memory leak
Diffstat (limited to 'src/php')
-rw-r--r-- | src/php/ext/grpc/channel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/php/ext/grpc/channel.c b/src/php/ext/grpc/channel.c index dc3acc89bb..db59869c7f 100644 --- a/src/php/ext/grpc/channel.c +++ b/src/php/ext/grpc/channel.c @@ -242,6 +242,7 @@ PHP_METHOD(Channel, __construct) { // parse the rest of the channel args array if (php_grpc_read_args_array(args_array, &args TSRMLS_CC) == FAILURE) { + efree(args.args); return; } @@ -301,6 +302,7 @@ PHP_METHOD(Channel, __construct) { create_and_add_channel_to_persistent_list( channel, target, args, creds, key, key_len TSRMLS_CC); } else { + efree(args.args); channel->wrapper = le->channel; } } |