summaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeFunctionscan.c
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2020-02-01 14:29:13 +1300
committerThomas Munro <tmunro@postgresql.org>2020-02-01 14:54:48 +1300
commitaab30cd4eddaa7e2b028a009d3ee11be42ce6f1e (patch)
treef78a2ce84a4cb84c3b1ce1da41bfb5edae2cd6d1 /src/backend/executor/nodeFunctionscan.c
parentde3d2df75169c54e7471575fe741391a32c6dbae (diff)
Fix memory leak on DSM slot exhaustion.
If we attempt to create a DSM segment when no slots are available, we should return the memory to the operating system. Previously we did that if the DSM_CREATE_NULL_IF_MAXSEGMENTS flag was passed in, but we didn't do it if an error was raised. Repair. Back-patch to 9.4, where DSM segments arrived. Author: Thomas Munro Reviewed-by: Robert Haas Reported-by: Julian Backes Discussion: https://postgr.es/m/CA%2BhUKGKAAoEw-R4om0d2YM4eqT1eGEi6%3DQot-3ceDR-SLiWVDw%40mail.gmail.com
Diffstat (limited to 'src/backend/executor/nodeFunctionscan.c')
0 files changed, 0 insertions, 0 deletions