Skip to content

Commit

Permalink
[CLIENT-3106] Fix reference count error caused by not properly increm…
Browse files Browse the repository at this point in the history
…enting reference count for Py_None object (#672)
  • Loading branch information
juliannguyen4 authored Sep 16, 2024
1 parent 5afa75e commit 45ad62a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/exception.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 45ad62a

Please sign in to comment.