diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2024-09-23 12:30:51 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2024-09-23 12:30:51 -0400 |
commit | 75240f65e700d7d157be27653c70fe75108f25c1 (patch) | |
tree | c7cd8a40107813461946bcd976a748705cfb7827 /src/tutorial/complex.c | |
parent | a7e5237f268ea378c514635d65a55aa47621958a (diff) | |
download | postgresql-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/complex.c')
0 files changed, 0 insertions, 0 deletions