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

Merge pull request #11625 from muxi/fix-objc-memory-leak-v14

Backport #11624: Objective C memory leak GRPCOpSendMetadata
parents dae8854b 9516b10c
No related branches found
No related tags found
No related merge requests found
...@@ -90,6 +90,10 @@ ...@@ -90,6 +90,10 @@
} }
- (void)dealloc { - (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); 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