Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1c249fc

Browse files
committed
Fix PL/Python memory leak involving array slices
Report and patch from Daniel Popowich, bug #5842(with some debugging help from Alex Hunsaker)
1 parent8c0a5eb commit1c249fc

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

‎src/pl/plpython/plpython.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3201,14 +3201,9 @@ PLy_result_ass_item(PyObject *arg, Py_ssize_t idx, PyObject *item)
32013201
staticPyObject*
32023202
PLy_result_slice(PyObject*arg,Py_ssize_tlidx,Py_ssize_thidx)
32033203
{
3204-
PyObject*rv;
32053204
PLyResultObject*ob= (PLyResultObject*)arg;
32063205

3207-
rv=PyList_GetSlice(ob->rows,lidx,hidx);
3208-
if (rv==NULL)
3209-
returnNULL;
3210-
Py_INCREF(rv);
3211-
returnrv;
3206+
returnPyList_GetSlice(ob->rows,lidx,hidx);
32123207
}
32133208

32143209
staticint

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp