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

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

Fix Objective C memory leak GRPCOpSendMetadata
parents 7f93e589 be3c7e2a
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