Fix small memory leak in psql.

This commit is contained in:
Neil Conway 2004-09-13 23:07:12 +00:00
parent adf9a28bb8
commit 65ff0ed455
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2004, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/startup.c,v 1.99 2004/08/29 05:06:54 momjian Exp $
* $PostgreSQL: pgsql/src/bin/psql/startup.c,v 1.100 2004/09/13 23:07:12 neilc Exp $
*/
#include "postgres_fe.h"
@ -590,6 +590,7 @@ process_psqlrc(char *argv0)
psqlrc = pg_malloc(strlen(home) + 1 + strlen(PSQLRC) + 1);
sprintf(psqlrc, "%s/%s", home, PSQLRC);
process_psqlrc_file(psqlrc);
free(psqlrc);
}
}