Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 65ff0ed

Browse files
author
Neil Conway
committed
Fix small memory leak in psql.
1 parent adf9a28 commit 65ff0ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/psql/startup.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2004, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/startup.c,v 1.99 2004/08/29 05:06:54 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/startup.c,v 1.100 2004/09/13 23:07:12 neilc Exp $
77
*/
88
#include "postgres_fe.h"
99

@@ -590,6 +590,7 @@ process_psqlrc(char *argv0)
590590
psqlrc = pg_malloc(strlen(home) + 1 + strlen(PSQLRC) + 1);
591591
sprintf(psqlrc, "%s/%s", home, PSQLRC);
592592
process_psqlrc_file(psqlrc);
593+
free(psqlrc);
593594
}
594595
}
595596

0 commit comments

Comments
 (0)