fscan_tdesc_rescan_leak-1.patch
text/x-patch
Filename: fscan_tdesc_rescan_leak-1.patch
Type: text/x-patch
Part: 0
Message:
Memory leaks on SRF rescan
Patch
Format: context
| File | + | − |
|---|---|---|
| src/backend/executor/nodeFunctionscan.c | 3 | 0 |
Index: src/backend/executor/nodeFunctionscan.c
===================================================================
RCS file: /home/neilc/postgres/cvs_root/pgsql/src/backend/executor/nodeFunctionscan.c,v
retrieving revision 1.45
diff -p -c -r1.45 nodeFunctionscan.c
*** src/backend/executor/nodeFunctionscan.c 1 Jan 2008 19:45:49 -0000 1.45
--- src/backend/executor/nodeFunctionscan.c 22 Feb 2008 02:00:56 -0000
*************** FunctionNext(FunctionScanState *node)
*** 77,83 ****
--- 77,86 ----
* do it always.
*/
if (funcTupdesc)
+ {
tupledesc_match(node->tupdesc, funcTupdesc);
+ FreeTupleDesc(funcTupdesc);
+ }
}
/*