Fix a couple of memory leaks in pg_restore.c

per complaint from Coverity.
pull/210/head
Andrew Dunstan 9 months ago
parent a8025f5448
commit 6d5417e634
  1. 4
      src/bin/pg_dump/pg_restore.c

@ -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…
Cancel
Save