Skip to content

Commit

Permalink
ruby: fix sporadic segfaults during the garbage collection hyperic#80
Browse files Browse the repository at this point in the history
  • Loading branch information
lizhanyin committed Aug 28, 2024
1 parent 7b71b92 commit aff170e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bindings/ruby/rbsigar.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ static VALUE rb_sigar_new(VALUE module)
{
rb_sigar_t *rbsigar;
rbsigar = ALLOC(rb_sigar_t);
rbsigar->logger = Qnil;
sigar_open(&(rbsigar->sigar));
return Data_Wrap_Struct(module, rb_sigar_mark, rb_sigar_close, rbsigar);
}
Expand Down

0 comments on commit aff170e

Please sign in to comment.