From 33af9aa4a08498aacf3ca285e878ea317ff3c2e8 Mon Sep 17 00:00:00 2001 From: Zhouyihai Ding Date: Mon, 22 Jan 2018 12:54:42 -0800 Subject: [PATCH] php: fix channel persistence channel leak --- src/php/ext/grpc/channel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/php/ext/grpc/channel.c b/src/php/ext/grpc/channel.c index db59869c7f7..83274fe49a4 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); }