Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit65ff0ed

Browse files
author
Neil Conway
committed
Fix small memory leak in psql.
1 parentadf9a28 commit65ff0ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/bin/psql/startup.c

Lines changed: 2 additions & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp