Skip to content

Commit

Permalink
Fix memory leak for strings passed to TVP
Browse files Browse the repository at this point in the history
  • Loading branch information
mavxg authored and mkleehammer committed Apr 16, 2024
1 parent 9078f19 commit 41df94d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/cursor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -873,8 +873,6 @@ static PyObject* execute(Cursor* cur, PyObject* pSql, PyObject* params, bool ski
Py_XDECREF(prevParam->pObject);
newParam.BufferLength = newParam.StrLen_or_Ind;
newParam.StrLen_or_Ind = SQL_DATA_AT_EXEC;
Py_INCREF(cell);
newParam.pObject = cell;
*prevParam = newParam;
if(prevParam->ParameterValuePtr == &newParam.Data)
{
Expand Down

0 comments on commit 41df94d

Please sign in to comment.