Skip to content
Snippets Groups Projects
Commit be3c7e2a authored by Muxi Yan's avatar Muxi Yan
Browse files

Fix the memory leak in metadata

parent 71a78e92
No related branches found
No related tags found
No related merge requests found
......@@ -75,6 +75,10 @@
}
- (void)dealloc {
for (int i = 0; i < _op.data.send_initial_metadata.count; i++) {
grpc_slice_unref(_op.data.send_initial_metadata.metadata[i].key);
grpc_slice_unref(_op.data.send_initial_metadata.metadata[i].value);
}
gpr_free(_op.data.send_initial_metadata.metadata);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment