mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 12:50:32 +03:00
Fixed memory leak (closes: #114).
This commit is contained in:
parent
b9f7c24a63
commit
5e590d604f
|
@ -1,3 +1,8 @@
|
|||
2006-07-31 Federico Di Gregorio <fog@initd.org>
|
||||
|
||||
* psycopg/psycopgmodule.c: fixed memory leak in custom exceptions
|
||||
(applied patch from #114).
|
||||
|
||||
2006-07-26 Federico Di Gregorio <fog@initd.org>
|
||||
|
||||
* psycopg/adapter_datetime.c (pydatetime_str): fixed error
|
||||
|
|
|
@ -429,6 +429,7 @@ psyco_set_error(PyObject *exc, PyObject *curs, char *msg,
|
|||
PyObject_SetAttrString(err, "cursor", Py_None);
|
||||
|
||||
PyErr_SetObject(exc, err);
|
||||
Py_DECREF(err);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user