Merge pull request #3679 from yang-g/flake3

unref slice before cancel
pull/3691/head
Vijay Pai 10 years ago
commit 0e62195b44
  1. 1
      src/core/surface/call.c

@ -936,6 +936,7 @@ static int add_slice_to_message(grpc_call *call, gpr_slice slice) {
}
/* we have to be reading a message to know what to do here */
if (!call->reading_message) {
gpr_slice_unref(slice);
cancel_with_status(call, GRPC_STATUS_INVALID_ARGUMENT,
"Received payload data while not reading a message");
return 0;

Loading…
Cancel
Save