Fixed reference leak in notify reception.

This commit is contained in:
Daniele Varrazzo 2010-04-20 14:35:35 +01:00
parent 2af29b467d
commit bcfcea4b49
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2010-04-20 Daniele Varrazzo <daniele.varrazzo@gmail.com>
* lib/pqpath.c: Fixed reference leak in notify reception.
2010-04-13 Daniele Varrazzo <daniele.varrazzo@gmail.com>
* lib/extensions.py: DECIMAL typecaster imported from _psycopg.

View File

@ -631,6 +631,7 @@ pq_is_busy(connectionObject *conn)
PyTuple_SET_ITEM(notify, 0, PyInt_FromLong((long)pgn->be_pid));
PyTuple_SET_ITEM(notify, 1, PyString_FromString(pgn->relname));
PyList_Append(conn->notifies, notify);
Py_DECREF(notify);
Py_UNBLOCK_THREADS;
PQfreemem(pgn);
}