diff options
author | Neil Conway | 2004-09-13 23:07:12 +0000 |
---|---|---|
committer | Neil Conway | 2004-09-13 23:07:12 +0000 |
commit | 65ff0ed455639f72207c0d5b5e9bc09de2da0d40 (patch) | |
tree | 86a58ce8c4c35a1b5d702807909351913b7bb824 | |
parent | adf9a28bb8df0adc65542e9c820dd7debfd4adcd (diff) |
Fix small memory leak in psql.
-rw-r--r-- | src/bin/psql/startup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/psql/startup.c b/src/bin/psql/startup.c index e1be68b145d..06b0c06da90 100644 --- a/src/bin/psql/startup.c +++ b/src/bin/psql/startup.c @@ -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); } } |