mirror of
https://github.com/postgres/postgres.git
synced 2025-07-23 03:21:12 +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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
destroyPQExpBuffer(db_lit);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Mark db to be skipped or increment the counter of dbs to be
|
* Mark db to be skipped or increment the counter of dbs to be
|
||||||
* restored
|
* restored
|
||||||
@ -1006,6 +1008,8 @@ get_dbnames_list_to_restore(PGconn *conn,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
destroyPQExpBuffer(query);
|
||||||
|
|
||||||
return count_db;
|
return count_db;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user