aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlogutils.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2015-07-19 12:26:14 +0200
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2015-07-20 14:10:07 +0200
commitf8d67ca8d4cbbbd6c6b3319d531089880d332534 (patch)
treef809a0521b44891e2c9ef44f86c944eefcd92a9d /src/backend/access/transam/xlogutils.c
parent8d9073692430a222939e7f2e436c80f0c271f116 (diff)
downloadpostgresql-f8d67ca8d4cbbbd6c6b3319d531089880d332534.tar.gz
postgresql-f8d67ca8d4cbbbd6c6b3319d531089880d332534.zip
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/transam/xlogutils.c')
0 files changed, 0 insertions, 0 deletions