aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-06-30 12:33:29 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-06-30 12:33:29 -0700
commitf6d2f1fa1bf732b1dfbdb9c24870c02b5b1642dd (patch)
tree00d4e48b7c04277251a35f22cb29cb84732677cb /src
parent991edad25ccc26499a24825cca882bc76aae41c7 (diff)
Fix leaking unclaimed incoming metadata
Diffstat (limited to 'src')
-rw-r--r--src/core/transport/chttp2/incoming_metadata.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/transport/chttp2/incoming_metadata.c b/src/core/transport/chttp2/incoming_metadata.c
index e81927ab20..a4b7174329 100644
--- a/src/core/transport/chttp2/incoming_metadata.c
+++ b/src/core/transport/chttp2/incoming_metadata.c
@@ -47,6 +47,10 @@ void grpc_chttp2_incoming_metadata_buffer_init(
void grpc_chttp2_incoming_metadata_buffer_destroy(
grpc_chttp2_incoming_metadata_buffer *buffer) {
+ size_t i;
+ for (i = 0; i < buffer->count; i++) {
+ grpc_mdelem_unref(buffer->elems[i].md);
+ }
gpr_free(buffer->elems);
}