diff --git a/src/main/aerospike.c b/src/main/aerospike.c index 2178710dc..d0dc50450 100644 --- a/src/main/aerospike.c +++ b/src/main/aerospike.c @@ -614,7 +614,7 @@ PyMODINIT_FUNC PyInit_aerospike(void) } #ifdef Py_GIL_DISABLED - PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED); + PyUnstable_Module_SetGIL(py_aerospike_module, Py_MOD_GIL_NOT_USED); #endif return py_aerospike_module;