aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/ext
diff options
context:
space:
mode:
authorGravatar Stanley Cheung <stanley.cheung@gmail.com>2018-01-23 13:45:40 -0800
committerGravatar GitHub <noreply@github.com>2018-01-23 13:45:40 -0800
commit99bb1703bf3a90afc51b7c2ed48a94d07acd34bf (patch)
tree6a6eebe66d60e86e08a83ddf7687d44e9ab1bee5 /src/php/ext
parentb609da577ce1fea622570756ac99745a81481432 (diff)
parent33af9aa4a08498aacf3ca285e878ea317ff3c2e8 (diff)
Merge pull request #14125 from ZhouyihaiDing/persistent_channel_leak
php: fix channel persistence list leak
Diffstat (limited to 'src/php/ext')
-rw-r--r--src/php/ext/grpc/channel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/php/ext/grpc/channel.c b/src/php/ext/grpc/channel.c
index db59869c7f..83274fe49a 100644
--- a/src/php/ext/grpc/channel.c
+++ b/src/php/ext/grpc/channel.c
@@ -437,6 +437,7 @@ void php_grpc_delete_persistent_list_entry(char *key, php_grpc_int key_len
le = (channel_persistent_le_t *)rsrc->ptr;
le->channel = NULL;
php_grpc_zend_hash_del(&EG(persistent_list), key, key_len+1);
+ free(le);
}
gpr_mu_unlock(&global_persistent_list_mu);
}