pypredict icon indicating copy to clipboard operation
pypredict copied to clipboard

Small memory leak in PyList_Append error handler

Open jtrutna opened this issue 9 years ago • 0 comments

As per mconst's comment in #6

"Cool, this looks good to me. (In theory I think you're also supposed to free your new py_obs reference if the subsequent PyList_Append fails, but I can't imagine that ever being a problem in practice -- it's a tiny memory leak, and it'll only happen if you're already out of memory for other reasons. Manual memory management sucks.)"

jtrutna avatar Dec 29 '14 19:12 jtrutna