|
7 | 7 | * Portions Copyright (c) 1994, Regents of the University of California |
8 | 8 | * |
9 | 9 | * IDENTIFICATION |
10 | | - * $PostgreSQL: pgsql/src/backend/storage/file/fd.c,v 1.123 2005/12/01 20:24:18 tgl Exp $ |
| 10 | + * $PostgreSQL: pgsql/src/backend/storage/file/fd.c,v 1.124 2005/12/08 15:38:29 tgl Exp $ |
11 | 11 | * |
12 | 12 | * NOTES: |
13 | 13 | * |
@@ -1405,7 +1405,7 @@ AllocateDir(const char *dirname) |
1405 | 1405 | *dir = AllocateDir(path); |
1406 | 1406 | *while ((dirent = ReadDir(dir, path)) != NULL) |
1407 | 1407 | *process dirent; |
1408 | | - *FreeDir(path); |
| 1408 | + *FreeDir(dir); |
1409 | 1409 | * |
1410 | 1410 | * since a NULL dir parameter is taken as indicating AllocateDir failed. |
1411 | 1411 | * (Make sure errno hasn't been changed since AllocateDir if you use this |
|