summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/pg_dump/pg_restore.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/pg_dump/pg_restore.c b/src/bin/pg_dump/pg_restore.c
index db8356405d9..c42e34b8a40 100644
--- a/src/bin/pg_dump/pg_restore.c
+++ b/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;
}