summaryrefslogtreecommitdiffstats
path: root/fs/afs/cmservice.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-05-03 12:27:39 +0200
committerDavid S. Miller <davem@davemloft.net>2007-05-03 12:27:39 +0200
commit5b35fad9d4fc2fcaf5c23887c1de1bc3eb28ab8c (patch)
tree5df3ba320ad239d2a856cf300d920118709d112a /fs/afs/cmservice.c
parent[NETLINK]: Fix use after free in netlink_recvmsg (diff)
downloadlinux-5b35fad9d4fc2fcaf5c23887c1de1bc3eb28ab8c.tar.xz
linux-5b35fad9d4fc2fcaf5c23887c1de1bc3eb28ab8c.zip
[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/afs/cmservice.c')
-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)
reply.ia.netmask[loop] = ifs[loop].netmask.s_addr;
reply.ia.mtu[loop] = htonl(ifs[loop].mtu);
}
+ kfree(ifs);
}
reply.cap.capcount = htonl(1);