projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adf9a28
)
Fix small memory leak in psql.
author
Neil Conway
<neilc@samurai.com>
Mon, 13 Sep 2004 23:07:12 +0000
(23:07 +0000)
committer
Neil Conway
<neilc@samurai.com>
Mon, 13 Sep 2004 23:07:12 +0000
(23:07 +0000)
src/bin/psql/startup.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/startup.c
b/src/bin/psql/startup.c
index e1be68b145d9d13bba262d412827c2233f33bfaa..06b0c06da909d77fb9310213b549ead2060e0efb 100644
(file)
--- 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);
}
}