diff options
author | Marc G. Fournier <scrappy@hub.org> | 1998-01-11 21:16:01 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1998-01-11 21:16:01 +0000 |
commit | e9fd73ca4834732131ace223bd998939c3fe5e6c (patch) | |
tree | b2390ffb4d792ef5c65e892fa8ae9b2b5f22cfcd /src/backend/tcop/fastpath.c | |
parent | ba977c086c01726affcc96219a79584a11ccc78e (diff) | |
download | postgresql-e9fd73ca4834732131ace223bd998939c3fe5e6c.tar.gz postgresql-e9fd73ca4834732131ace223bd998939c3fe5e6c.zip |
Fix from Peter for BLOBs
Diffstat (limited to 'src/backend/tcop/fastpath.c')
-rw-r--r-- | src/backend/tcop/fastpath.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/tcop/fastpath.c b/src/backend/tcop/fastpath.c index a0c16ccf964..5a49b382fc9 100644 --- a/src/backend/tcop/fastpath.c +++ b/src/backend/tcop/fastpath.c @@ -7,7 +7,7 @@ * * * 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 * This cruft is the server side of PQfn. @@ -326,7 +326,7 @@ HandleFunctionRequest() { /* by-reference ... */ if (fip->arglen[i] < 0) { /* ... 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"); } |