From b1372bf1dcc5fc120781c539e1a27f138e6ae9e3 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Fri, 14 Jan 2022 11:44:00 +0100 Subject: [PATCH] Undefine swig_runtime_data allocator Ref: https://bugs.ruby-lang.org/issues/18007 --- ext/rlibmemcached/rlibmemcached_wrap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/rlibmemcached/rlibmemcached_wrap.c b/ext/rlibmemcached/rlibmemcached_wrap.c index 72853549..f291d998 100644 --- a/ext/rlibmemcached/rlibmemcached_wrap.c +++ b/ext/rlibmemcached/rlibmemcached_wrap.c @@ -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);