aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-05-03 06:27:39 -0400
committerDavid S. Miller <davem@davemloft.net>2007-05-03 06:27:39 -0400
commit5b35fad9d4fc2fcaf5c23887c1de1bc3eb28ab8c (patch)
tree5df3ba320ad239d2a856cf300d920118709d112a /fs
parent188ccb5583b8f501e1d0f5ba4f056afa141694e7 (diff)
[AFS]: Fix memory leak in SRXAFSCB_GetCapabilities
The interface array is not freed on exit. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs')
-rw-r--r--fs/afs/cmservice.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/afs/cmservice.c b/fs/afs/cmservice.c
index 6685f4cbccb3..d5b2ad6575bc 100644
--- a/fs/afs/cmservice.c
+++ b/fs/afs/cmservice.c
@@ -443,6 +443,7 @@ static void SRXAFSCB_GetCapabilities(struct work_struct *work)
443 reply.ia.netmask[loop] = ifs[loop].netmask.s_addr; 443 reply.ia.netmask[loop] = ifs[loop].netmask.s_addr;
444 reply.ia.mtu[loop] = htonl(ifs[loop].mtu); 444 reply.ia.mtu[loop] = htonl(ifs[loop].mtu);
445 } 445 }
446 kfree(ifs);
446 } 447 }
447 448
448 reply.cap.capcount = htonl(1); 449 reply.cap.capcount = htonl(1);