mirror of
https://github.com/postgres/postgres.git
synced 2026-06-08 16:26:30 -04:00
PyGreSQL causes a segfault when used with a Python executable that was
compiled with --with-pymalloc. This change fixes that. Thanks to Dave Wallace <dwallace@udel.edu>
This commit is contained in:
parent
f1f222843e
commit
861c336b51
1 changed files with 4 additions and 4 deletions
|
|
@ -343,7 +343,7 @@ pgsource_dealloc(pgsourceobject * self)
|
|||
PQclear(self->last_result);
|
||||
|
||||
Py_XDECREF(self->pgcnx);
|
||||
PyMem_DEL(self);
|
||||
PyObject_DEL(self);
|
||||
}
|
||||
|
||||
/* closes object */
|
||||
|
|
@ -990,7 +990,7 @@ pglarge_dealloc(pglargeobject * self)
|
|||
lo_close(self->pgcnx->cnx, self->lo_fd);
|
||||
|
||||
Py_XDECREF(self->pgcnx);
|
||||
PyMem_DEL(self);
|
||||
PyObject_DEL(self);
|
||||
}
|
||||
|
||||
/* opens large object */
|
||||
|
|
@ -1546,7 +1546,7 @@ pg_dealloc(pgobject * self)
|
|||
if (self->cnx)
|
||||
PQfinish(self->cnx);
|
||||
|
||||
PyMem_DEL(self);
|
||||
PyObject_DEL(self);
|
||||
}
|
||||
|
||||
/* close without deleting */
|
||||
|
|
@ -1579,7 +1579,7 @@ pgquery_dealloc(pgqueryobject * self)
|
|||
if (self->last_result)
|
||||
PQclear(self->last_result);
|
||||
|
||||
PyMem_DEL(self);
|
||||
PyObject_DEL(self);
|
||||
}
|
||||
|
||||
/* resets connection */
|
||||
|
|
|
|||
Loading…
Reference in a new issue