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

Backport #11624: Objective C memory leak GRPCOpSendMetadata
pull/11640/head
Muxi Yan 8 years ago committed by GitHub
commit f2c5d33741
  1. 4
      src/objective-c/GRPCClient/private/GRPCWrappedCall.m

@ -90,6 +90,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);
}

Loading…
Cancel
Save