diff options
author | Stanley Cheung <stanley.cheung@gmail.com> | 2018-01-24 10:57:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-24 10:57:36 -0800 |
commit | 95b4c6570d339beb0445d70d4c8abafa3e26f341 (patch) | |
tree | 5fc99ec737c8888b5b1650212349e686e7e14df3 /src/php/ext | |
parent | a14ce309ff8e41db1b2a1324e9085b7df0e6099e (diff) | |
parent | 367a1ee04bbc4b40d61b912363294e5f67253e74 (diff) |
Merge pull request #14158 from ZhouyihaiDing/pr_callcredentials_plugin_leak
php: fix call credentials createFromPlugin leak
Diffstat (limited to 'src/php/ext')
-rw-r--r-- | src/php/ext/grpc/call_credentials.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/php/ext/grpc/call_credentials.c b/src/php/ext/grpc/call_credentials.c index ba3ba9a525..a37eb601c4 100644 --- a/src/php/ext/grpc/call_credentials.c +++ b/src/php/ext/grpc/call_credentials.c @@ -120,6 +120,8 @@ PHP_METHOD(CallCredentials, createFromPlugin) { fci->params, fci->param_count) == FAILURE) { zend_throw_exception(spl_ce_InvalidArgumentException, "createFromPlugin expects 1 callback", 1 TSRMLS_CC); + free(fci); + free(fci_cache); return; } |