Merge pull request #13047 from apolcyn/fix_ruby_mem_leak_again

Fix call object memory leak in ruby, when call object is closed
pull/13038/merge
apolcyn 7 years ago committed by GitHub
commit 47413fd6d6
  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