Skip to content

Commit

Permalink
Fix for CONPY-83
Browse files Browse the repository at this point in the history
Added missing reference increment for Py_None.
  • Loading branch information
9EOR9 committed Jul 7, 2020
1 parent fa61a66 commit ee1e81a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mariadb_connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@ PyObject *MrdbConnection_close(MrdbConnection *self)
clock_gettime(CLOCK_MONOTONIC_RAW, &self->last_used);
}
pthread_mutex_unlock(&self->pool->lock);
Py_INCREF(Py_None);
return Py_None;
}

Expand Down

0 comments on commit ee1e81a

Please sign in to comment.