Skip to content

Commit

Permalink
Fix memory leak with decimal parameters
Browse files Browse the repository at this point in the history
Fixes: #1026
  • Loading branch information
gordthompson authored and mkleehammer committed Mar 27, 2022
1 parent 6bae8f0 commit e67ad89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/params.cpp
Expand Up @@ -566,6 +566,7 @@ static int PyToCType(Cursor *cur, unsigned char **outbuf, PyObject *cell, ParamI

Py_XDECREF(args);
Py_XDECREF(scaledDecimal);
Py_XDECREF(newDigits);
Py_XDECREF(cellParts);

pNum->precision = (SQLCHAR)pi->ColumnSize;
Expand Down

0 comments on commit e67ad89

Please sign in to comment.