Fix leaking unclaimed incoming metadata

pull/2257/head
Craig Tiller 10 years ago
parent 991edad25c
commit f6d2f1fa1b
  1. 4
      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( void grpc_chttp2_incoming_metadata_buffer_destroy(
grpc_chttp2_incoming_metadata_buffer *buffer) { 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); gpr_free(buffer->elems);
} }

Loading…
Cancel
Save