mirror of
https://github.com/postgres/postgres.git
synced 2026-04-28 09:38:27 -04:00
pg_dump: Fix memory leak in dumpSequenceData().
Oversight in commit 7a485bd641. Per Coverity.
Backpatch-through: 18
This commit is contained in:
parent
d2c6ff7c52
commit
56e1f50101
1 changed files with 3 additions and 1 deletions
|
|
@ -19056,12 +19056,14 @@ dumpSequenceData(Archive *fout, const TableDataInfo *tdinfo)
|
|||
TableInfo *tbinfo = tdinfo->tdtable;
|
||||
int64 last;
|
||||
bool called;
|
||||
PQExpBuffer query = createPQExpBuffer();
|
||||
PQExpBuffer query;
|
||||
|
||||
/* needn't bother if not dumping sequence data */
|
||||
if (!fout->dopt->dumpData && !fout->dopt->sequence_data)
|
||||
return;
|
||||
|
||||
query = createPQExpBuffer();
|
||||
|
||||
/*
|
||||
* For versions >= 18, the sequence information is gathered in the sorted
|
||||
* array before any calls to dumpSequenceData(). See collectSequences()
|
||||
|
|
|
|||
Loading…
Reference in a new issue