fix memory leak in socket.c
Subsystems (2)
PATCH 1/1 fix memory leak in socket.c
This fixes a memory leak in sock_fasync :: net/socket.c.
I sent a fix to Linus and it is now in 2.5.
2.4 and 2.4-ac still require the fix... the following patch applies to 2.4.19-rc1 and 2.4.19-rc1-ac5.
Robert Love
net/socket.c +4 -2
@@ -743,11 +743,13 @@return -ENOMEM ; } - sock =socki_lookup (filp->f_dentry->d_inode); -if ((sk=sock->sk) ==NULL ) +if ((sk=sock->sk) ==NULL ) { +if (fna) +kfree (fna);return -EINVAL ; + }lock_sock (sk);
Patch applied, thanks.