The attached patch fixes a minor memory leak in psql.
Cheers,
Neil
-- Neil Conway <neilconway(at)rogers(dot)com>PGP Key ID: DB3C29FC