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

Commit27777b6

Browse files
committed
Don't free() the result of getpwuid().
Discovered by Jason Tishler <Jason.Tishler@dothill.com>.
1 parent920c506 commit27777b6

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

‎src/bin/psql/help.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.31 2000/05/26 15:47:18 momjian Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.32 2000/09/22 23:02:00 petere Exp $
77
*/
88
#include"postgres.h"
99
#include"help.h"
@@ -137,11 +137,6 @@ usage(void)
137137
puts("the PostgreSQL manual, which accompanies the distribution and is also");
138138
puts("available at <http://www.postgresql.org>.");
139139
puts("Report bugs to <pgsql-bugs@postgresql.org>.");
140-
141-
#ifndefWIN32
142-
if (pw)
143-
free(pw);
144-
#endif
145140
}
146141

147142

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp