diff options
author | 2015-01-31 20:01:37 -0800 | |
---|---|---|
committer | 2015-01-31 20:01:37 -0800 | |
commit | 8f4f6e207f3ba74bc3aea4658e2c63529bf7d20f (patch) | |
tree | 02f3925496c5c653c076f84f5579e09e90370f7d /src/core/surface/call.c | |
parent | 7a9d79244f33870d4ee7b50d177286f285cba147 (diff) |
Check for null pointer
Diffstat (limited to 'src/core/surface/call.c')
-rw-r--r-- | src/core/surface/call.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/surface/call.c b/src/core/surface/call.c index 2b5bcc2f52..11b65be871 100644 --- a/src/core/surface/call.c +++ b/src/core/surface/call.c @@ -896,7 +896,7 @@ void grpc_call_initial_metadata_complete(grpc_call_element *surface_element) { } static void finish_read_event(void *p, grpc_op_error error) { - grpc_byte_buffer_destroy(p); + if (p) grpc_byte_buffer_destroy(p); } static void finish_read(grpc_call *call, grpc_op_error error, void *tag) { |