Fixed: memory-leak in 1.2.11

Jochen Karrer (cip307@wpax01.Physik.Uni-Wuerzburg.DE)
Wed, 26 Jul 95 10:38:43 MESZ


Hello

I wrote:
>Hello
>There is a memory - leak in 1.2.11
>I found the following:
...............

I found the bug. Everytime you try to open a nonexistent file on a hpfs-
partition, there will be a loss of 4kB, because the memory for
the quad-buffer-head datas is't freed if the file doesnt exist.
I found this is an error in hpfs_fs.c in map_dirent.
Here a patch proposed by Linus:

--- hpfs_fs.orig.c Sun Feb 5 13:44:32 1995
+++ hpfs_fs.c Wed Jul 26 08:14:53 1995
@@ -1297,7 +1297,8 @@
/*
* name not found.
*/
-
+
+ brelse4(qbh);
return 0;
}

Linus said this will be in 1.3.13, but he doesn't know if there will be
another 1.2.x release. I was to late for 1.2.12, because nobody helped me.

Jochen