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

Commit847e8c7

Browse files
committed
Free plan values in the PLyPlanObject dealloc function
Jan Urbański
1 parent719461b commit847e8c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/pl/plpython/plpython.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2681,6 +2681,7 @@ PLy_plan_new(void)
26812681
ob->plan=NULL;
26822682
ob->nargs=0;
26832683
ob->types=NULL;
2684+
ob->values=NULL;
26842685
ob->args=NULL;
26852686

26862687
return (PyObject*)ob;
@@ -2696,6 +2697,8 @@ PLy_plan_dealloc(PyObject *arg)
26962697
SPI_freeplan(ob->plan);
26972698
if (ob->types)
26982699
PLy_free(ob->types);
2700+
if (ob->values)
2701+
PLy_free(ob->values);
26992702
if (ob->args)
27002703
{
27012704
inti;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp