[2002-02-23 20:27] Tom Lane said: | Bruce Momjian <[EMAIL PROTECTED]> writes: | > { | > + struct stat st; | > fp = AllocateFile(filename, PG_BINARY_R);
| > + fclose(fp); | | This coding is WRONG. You do not use fclose() to release a file | opened with AllocateFile. corrected diff attached. b -- "Develop your talent, man, and leave the world something. Records are really gifts from people. To think that an artist would love you enough to share his music with anyone is a beautiful thing." -- Duane Allman
Index: src/backend/commands/copy.c =================================================================== RCS file: /var/cvsup/pgsql/src/backend/commands/copy.c,v retrieving revision 1.146 diff -r1.146 copy.c 340c340 < fclose(fp); --- > FreeFile(fp); 392c392 < fclose(fp); --- > FreeFile(fp);
---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/users-lounge/docs/faq.html