pkgsrc/games/sarien/patches/patch-ab
drochner 8b5346e033 plug a file descriptor leak
now Larry gets past the first screen
2003-08-19 18:41:46 +00:00

17 lines
351 B
Text

$NetBSD: patch-ab,v 1.1 2003/08/19 18:41:47 drochner Exp $
--- src/filesys/unix/fileglob.c.orig 2003-08-19 20:32:30.000000000 +0200
+++ src/filesys/unix/fileglob.c 2003-08-19 20:33:42.000000000 +0200
@@ -76,10 +76,12 @@
} else {
strcpy (path, e->d_name);
}
+ closedir(d);
return path;
}
}
+ closedir(d);
return NULL;
}