Fix call object memory leak in ruby, when call object is closed

pull/13047/head
Alexander Polcyn 7 years ago
parent 56a9316e01
commit 40d3062a76
  1. 1
      src/ruby/ext/grpc/rb_call.c

@ -221,6 +221,7 @@ static VALUE grpc_rb_call_close(VALUE self) {
TypedData_Get_Struct(self, grpc_rb_call, &grpc_call_data_type, call);
if (call != NULL) {
destroy_call(call);
xfree(RTYPEDDATA_DATA(self));
RTYPEDDATA_DATA(self) = NULL;
}
return Qnil;

Loading…
Cancel
Save