mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-18 18:00:35 +03:00
Fixed reference leak in notify reception.
This commit is contained in:
parent
2af29b467d
commit
bcfcea4b49
|
@ -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>
|
2010-04-13 Daniele Varrazzo <daniele.varrazzo@gmail.com>
|
||||||
|
|
||||||
* lib/extensions.py: DECIMAL typecaster imported from _psycopg.
|
* lib/extensions.py: DECIMAL typecaster imported from _psycopg.
|
||||||
|
|
|
@ -631,6 +631,7 @@ pq_is_busy(connectionObject *conn)
|
||||||
PyTuple_SET_ITEM(notify, 0, PyInt_FromLong((long)pgn->be_pid));
|
PyTuple_SET_ITEM(notify, 0, PyInt_FromLong((long)pgn->be_pid));
|
||||||
PyTuple_SET_ITEM(notify, 1, PyString_FromString(pgn->relname));
|
PyTuple_SET_ITEM(notify, 1, PyString_FromString(pgn->relname));
|
||||||
PyList_Append(conn->notifies, notify);
|
PyList_Append(conn->notifies, notify);
|
||||||
|
Py_DECREF(notify);
|
||||||
Py_UNBLOCK_THREADS;
|
Py_UNBLOCK_THREADS;
|
||||||
PQfreemem(pgn);
|
PQfreemem(pgn);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user