aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c
diff options
context:
space:
mode:
Diffstat (limited to 'src/objective-c')
-rw-r--r--src/objective-c/GRPCClient/private/GRPCWrappedCall.m1
-rw-r--r--src/objective-c/GRPCClient/private/NSError+GRPC.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCWrappedCall.m b/src/objective-c/GRPCClient/private/GRPCWrappedCall.m
index 12788d0ada..41ec1a18b6 100644
--- a/src/objective-c/GRPCClient/private/GRPCWrappedCall.m
+++ b/src/objective-c/GRPCClient/private/GRPCWrappedCall.m
@@ -243,6 +243,7 @@
- (void)dealloc {
grpc_metadata_array_destroy(&_status.metadata);
+ gpr_free(_status.details);
}
@end
diff --git a/src/objective-c/GRPCClient/private/NSError+GRPC.h b/src/objective-c/GRPCClient/private/NSError+GRPC.h
index af1f3aecc5..6577d34e80 100644
--- a/src/objective-c/GRPCClient/private/NSError+GRPC.h
+++ b/src/objective-c/GRPCClient/private/NSError+GRPC.h
@@ -61,7 +61,7 @@ typedef NS_ENUM(NSInteger, GRPCErrorCode) {
#include <grpc/grpc.h>
typedef struct grpc_status {
grpc_status_code status;
- const char *details;
+ char *details;
grpc_metadata_array metadata;
} grpc_status;