aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/pgstatfuncs.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2020-01-08 10:02:55 +0900
committerMichael Paquier <michael@paquier.xyz>2020-01-08 10:02:55 +0900
commitb0b6196386681383b8f0cb76df4fd35178a7371e (patch)
tree80f5489cb66615a5e1556c23071d58d9da85fc5b /src/backend/utils/adt/pgstatfuncs.c
parentb175bd59fa54a90d21bc541f812643ac45281b98 (diff)
downloadpostgresql-b0b6196386681383b8f0cb76df4fd35178a7371e.tar.gz
postgresql-b0b6196386681383b8f0cb76df4fd35178a7371e.zip
Remove dependency to system calls for memory allocation in refint
Failures in allocations could lead to crashes with NULL pointer dereferences . Memory context TopMemoryContext is used instead to keep alive the plans allocated in the session. A more specific context could be used here, but this is left for later. Reported-by: Jian Zhang Author: Michael Paquier Reviewed-by: Tom Lane, Andres Freund Discussion: https://postgr.es/m/16190-70181c803641c3dc@postgresql.org
Diffstat (limited to 'src/backend/utils/adt/pgstatfuncs.c')
0 files changed, 0 insertions, 0 deletions