Skip to content

Commit

Permalink
Undefine swig_runtime_data allocator
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Jan 14, 2022
1 parent 241c040 commit b1372bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/rlibmemcached/rlibmemcached_wrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1766,6 +1766,7 @@ SWIG_Ruby_SetModule(swig_module_info *pointer)
{
/* register a new class */
VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
rb_undef_alloc_func(cl);
/* create and store the structure pointer to a global variable */
swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
Expand Down

0 comments on commit b1372bf

Please sign in to comment.