Skip to content

Commit 27777b6

Browse files
committed
Don't free() the result of getpwuid().
Discovered by Jason Tishler <Jason.Tishler@dothill.com>.
1 parent 920c506 commit 27777b6

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-
#ifndef WIN32
142-
if (pw)
143-
free(pw);
144-
#endif
145140
}
146141

147142

0 commit comments

Comments
 (0)