Skip to content

Commit

Permalink
fix ref cnt error
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed Sep 16, 2024
1 parent 79509c5 commit 63260df
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 63260df

Please sign in to comment.