Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba977c0 commit e9fd73cCopy full SHA for e9fd73c
src/backend/tcop/fastpath.c
@@ -7,7 +7,7 @@
7
*
8
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/tcop/fastpath.c,v 1.10 1998/01/07 21:05:54 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/fastpath.c,v 1.11 1998/01/11 21:16:01 scrappy Exp $
11
12
* NOTES
13
* This cruft is the server side of PQfn.
@@ -326,7 +326,7 @@ HandleFunctionRequest()
326
{ /* by-reference ... */
327
if (fip->arglen[i] < 0)
328
{ /* ... varlena */
329
- if (!(p = palloc(argsize + VARHDRSZ)))
+ if (!(p = palloc(argsize + VARHDRSZ + 1))) /* Added +1 to solve memory leak - Peter 98 Jan 6 */
330
{
331
elog(ERROR, "HandleFunctionRequest: palloc failed");
332
}
0 commit comments