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 Mar 29, 2024
1 parent ff1dd23 commit cf56054
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 cf56054

Please sign in to comment.