diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2015-07-20 14:18:08 +0200 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2015-07-20 14:18:08 +0200 |
commit | 3cb6ef9983b5d7b45e7a5bd42c2cf8714f931850 (patch) | |
tree | 50fac29731db45e10de79844dd500e18d79f3069 /src/backend/access/spgist/spgxlog.c | |
parent | 6675301ea56d6f518eefa4b4603a8efd1e754a8f (diff) |
Fix (some of) pltcl memory usage
As reported by Bill Parker, PL/Tcl did not validate some malloc() calls
against NULL return. Fix by using palloc() in a new long-lived memory
context instead. This allows us to simplify error handling too, by
simply deleting the memory context instead of doing retail frees.
There's still a lot that could be done to improve PL/Tcl's memory
handling ...
This is pretty ancient, so backpatch all the way back.
Author: Michael Paquier and Álvaro Herrera
Discussion: https://www.postgresql.org/message-id/CAFrbyQwyLDYXfBOhPfoBGqnvuZO_Y90YgqFM11T2jvnxjLFmqw@mail.gmail.com
Diffstat (limited to 'src/backend/access/spgist/spgxlog.c')
0 files changed, 0 insertions, 0 deletions