Skip to content

Commit

Permalink
Fix memory leak with nvarchar(max) and fast_executemany (#1108)
Browse files Browse the repository at this point in the history
Fixes: 1099
  • Loading branch information
gordthompson committed Oct 31, 2022
1 parent 2071e94 commit 0d4dad7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/params.cpp
Expand Up @@ -346,7 +346,6 @@ static int PyToCType(Cursor *cur, unsigned char **outbuf, PyObject *cell, ParamI
{
// DAE
DAEParam *pParam = (DAEParam*)*outbuf;
Py_INCREF(cell);
pParam->cell = encoded.Detach();
pParam->maxlen = cur->cnxn->GetMaxLength(pi->ValueType);
*outbuf += sizeof(DAEParam);
Expand Down

0 comments on commit 0d4dad7

Please sign in to comment.