From c675d4e827f107c5206aa03c48aeb7b29945c837 Mon Sep 17 00:00:00 2001 From: Anthony Tuininga Date: Thu, 24 Jan 2019 13:45:16 -0700 Subject: [PATCH] Eliminated memory leak introduced by session tagging changes. --- src/cxoConnection.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cxoConnection.c b/src/cxoConnection.c index 6c90f40..a3b825e 100644 --- a/src/cxoConnection.c +++ b/src/cxoConnection.c @@ -884,6 +884,7 @@ static void cxoConnection_free(cxoConnection *conn) Py_CLEAR(conn->version); Py_CLEAR(conn->inputTypeHandler); Py_CLEAR(conn->outputTypeHandler); + Py_CLEAR(conn->tag); 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, tagBuffer.size); Py_END_ALLOW_THREADS + cxoBuffer_clear(&tagBuffer); if (status < 0) return cxoError_raiseAndReturnNull();