projects
/
users
/
simon
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3dd9bb7
)
Fix bug introduced in recent patch to make plpython cope with OUT arguments:
author
Tom Lane
<
[email protected]
>
Tue, 4 Nov 2008 15:16:48 +0000
(15:16 +0000)
committer
Tom Lane
<
[email protected]
>
Tue, 4 Nov 2008 15:16:48 +0000
(15:16 +0000)
the proc->argnames array has to be initialized to zero immediately on creation,
since the error recovery path will try to free its elements.
src/pl/plpython/plpython.c
patch
|
blob
|
blame
|
history
diff --git
a/src/pl/plpython/plpython.c
b/src/pl/plpython/plpython.c
index 273aec02d741c8b4e827a2f2193d4373fa489891..1565c41372fd66c9ea8303df4511c16dddd475a1 100644
(file)
--- a/
src/pl/plpython/plpython.c
+++ b/
src/pl/plpython/plpython.c
@@
-1282,7
+1282,7
@@
PLy_procedure_create(HeapTuple procTup, Oid tgreloid, char *key)
}
}
- proc->argnames = (char **) PLy_malloc(sizeof(char *) * proc->nargs);
+ proc->argnames = (char **) PLy_malloc
0
(sizeof(char *) * proc->nargs);
for (i = pos = 0; i < total; i++)
{
HeapTuple argTypeTup;