diff options
author | Thomas Munro <tmunro@postgresql.org> | 2020-02-01 14:29:13 +1300 |
---|---|---|
committer | Thomas Munro <tmunro@postgresql.org> | 2020-02-01 14:59:58 +1300 |
commit | a5f45c3dd3b569de07e9adf049e748c6a3a896a5 (patch) | |
tree | a568f5d729587a28248736a3dd59253468b9d3a6 /src/backend/access/gist/gistget.c | |
parent | 59047b6d0c93db208a40a77a3672cbe10b7b04da (diff) | |
download | postgresql-a5f45c3dd3b569de07e9adf049e748c6a3a896a5.tar.gz postgresql-a5f45c3dd3b569de07e9adf049e748c6a3a896a5.zip |
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/access/gist/gistget.c')
0 files changed, 0 insertions, 0 deletions