mirror of
https://github.com/postgres/postgres.git
synced 2026-03-14 06:32:18 -04:00
Fix a couple of memory leaks in pg_restore.c
per complaint from Coverity.
This commit is contained in:
parent
a8025f5448
commit
6d5417e634
1 changed files with 4 additions and 0 deletions
|
|
@ -991,6 +991,8 @@ get_dbnames_list_to_restore(PGconn *conn,
|
|||
break;
|
||||
}
|
||||
|
||||
destroyPQExpBuffer(db_lit);
|
||||
|
||||
/*
|
||||
* Mark db to be skipped or increment the counter of dbs to be
|
||||
* restored
|
||||
|
|
@ -1006,6 +1008,8 @@ get_dbnames_list_to_restore(PGconn *conn,
|
|||
}
|
||||
}
|
||||
|
||||
destroyPQExpBuffer(query);
|
||||
|
||||
return count_db;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue