1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-21 16:02:15 +03:00

Fix a couple of memory leaks in pg_restore.c

per complaint from Coverity.
This commit is contained in:
Andrew Dunstan
2025-04-06 09:08:02 -04:00
parent a8025f5448
commit 6d5417e634

View File

@ -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;
}