Eliminated memory leak introduced by session tagging changes.
This commit is contained in:
parent
b51ed5bc87
commit
c675d4e827
@ -884,6 +884,7 @@ static void cxoConnection_free(cxoConnection *conn)
|
|||||||
Py_CLEAR(conn->version);
|
Py_CLEAR(conn->version);
|
||||||
Py_CLEAR(conn->inputTypeHandler);
|
Py_CLEAR(conn->inputTypeHandler);
|
||||||
Py_CLEAR(conn->outputTypeHandler);
|
Py_CLEAR(conn->outputTypeHandler);
|
||||||
|
Py_CLEAR(conn->tag);
|
||||||
Py_TYPE(conn)->tp_free((PyObject*) conn);
|
Py_TYPE(conn)->tp_free((PyObject*) conn);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1156,6 +1157,7 @@ static PyObject *cxoConnection_close(cxoConnection *conn, PyObject *args)
|
|||||||
status = dpiConn_close(conn->handle, mode, (char*) tagBuffer.ptr,
|
status = dpiConn_close(conn->handle, mode, (char*) tagBuffer.ptr,
|
||||||
tagBuffer.size);
|
tagBuffer.size);
|
||||||
Py_END_ALLOW_THREADS
|
Py_END_ALLOW_THREADS
|
||||||
|
cxoBuffer_clear(&tagBuffer);
|
||||||
if (status < 0)
|
if (status < 0)
|
||||||
return cxoError_raiseAndReturnNull();
|
return cxoError_raiseAndReturnNull();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user