OSDN Git Service

SQL functions returning pass-by-reference types were copying the results
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 10 Apr 2005 18:04:20 +0000 (18:04 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 10 Apr 2005 18:04:20 +0000 (18:04 +0000)
commit313de22c853bb00564c876ab1c1a3b64cb7eb0ee
tree6776a304e71ab51e8c81a259ee6e7b4b8b657d31
parent9427cceb0718281a706dd8115684cb9e009be2a3
SQL functions returning pass-by-reference types were copying the results
into the wrong memory context, resulting in a query-lifespan memory leak.
Bug is new in 8.0, I believe.  Per report from Rae Stiening.
src/backend/executor/functions.c