summaryrefslogtreecommitdiff
path: root/src/backend/commands/tablecmds.c
diff options
context:
space:
mode:
authorTom Lane2024-09-23 16:30:51 +0000
committerTom Lane2024-09-23 16:30:51 +0000
commit75240f65e700d7d157be27653c70fe75108f25c1 (patch)
treec7cd8a40107813461946bcd976a748705cfb7827 /src/backend/commands/tablecmds.c
parenta7e5237f268ea378c514635d65a55aa47621958a (diff)
jsonapi: fix memory leakage during OOM error recovery.
Coverity pointed out that inc_lex_level() would leak memory (not to mention corrupt the pstack data structure) if some but not all of its three REALLOC's failed. To fix, store successfully-updated pointers back into the pstack struct immediately. Oversight in 0785d1b8b, so no need for back-patch.
Diffstat (limited to 'src/backend/commands/tablecmds.c')
0 files changed, 0 insertions, 0 deletions