From 63260df1bc33cb36980ae65e50f0bd41ce8fe4fa Mon Sep 17 00:00:00 2001 From: Julian Nguyen <109386615+juliannguyen4@users.noreply.github.com> Date: Mon, 16 Sep 2024 08:36:06 -0700 Subject: [PATCH] fix ref cnt error --- src/main/exception.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/exception.c b/src/main/exception.c index d1dcd5ec7..4f9a7ab0d 100644 --- a/src/main/exception.c +++ b/src/main/exception.c @@ -321,6 +321,7 @@ PyObject *AerospikeException_New(void) PyObject *py_code = NULL; if (exception_def.code == NO_ERROR_CODE) { + Py_INCREF(Py_None); py_code = Py_None; } else {