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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user