[Python-checkins] r45450 - python/trunk/Modules/_sqlite/connection.c
neal.norwitz
python-checkins at python.org
Sun Apr 16 05:28:18 CEST 2006
Author: neal.norwitz
Date: Sun Apr 16 05:28:17 2006
New Revision: 45450
Modified:
python/trunk/Modules/_sqlite/connection.c
Log:
Fix memory leak
Modified: python/trunk/Modules/_sqlite/connection.c
==============================================================================
--- python/trunk/Modules/_sqlite/connection.c (original)
+++ python/trunk/Modules/_sqlite/connection.c Sun Apr 16 05:28:17 2006
@@ -688,9 +688,13 @@
Py_XDECREF(self->isolation_level);
+ if (self->begin_statement) {
+ PyMem_Free(self->begin_statement);
+ self->begin_statement = NULL;
+ }
+
if (isolation_level == Py_None) {
Py_INCREF(Py_None);
- self->begin_statement = NULL;
self->isolation_level = Py_None;
empty = PyTuple_New(0);
More information about the Python-checkins
mailing list