aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/syscat.source
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2024-09-23 12:30:51 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2024-09-23 12:30:51 -0400
commit75240f65e700d7d157be27653c70fe75108f25c1 (patch)
treec7cd8a40107813461946bcd976a748705cfb7827 /src/tutorial/syscat.source
parenta7e5237f268ea378c514635d65a55aa47621958a (diff)
downloadpostgresql-75240f65e700d7d157be27653c70fe75108f25c1.tar.gz
postgresql-75240f65e700d7d157be27653c70fe75108f25c1.zip
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/tutorial/syscat.source')
0 files changed, 0 insertions, 0 deletions