Skip to content
Snippets Groups Projects
Commit e9fd73ca authored by Marc G. Fournier's avatar Marc G. Fournier
Browse files

Fix from Peter for BLOBs

parent ba977c08
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $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 $
* *
* NOTES * NOTES
* This cruft is the server side of PQfn. * This cruft is the server side of PQfn.
...@@ -326,7 +326,7 @@ HandleFunctionRequest() ...@@ -326,7 +326,7 @@ HandleFunctionRequest()
{ /* by-reference ... */ { /* by-reference ... */
if (fip->arglen[i] < 0) if (fip->arglen[i] < 0)
{ /* ... varlena */ { /* ... varlena */
if (!(p = palloc(argsize + VARHDRSZ))) if (!(p = palloc(argsize + VARHDRSZ + 1))) /* Added +1 to solve memory leak - Peter 98 Jan 6 */
{ {
elog(ERROR, "HandleFunctionRequest: palloc failed"); elog(ERROR, "HandleFunctionRequest: palloc failed");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment