diff options
author | Patrick McHardy <kaber@trash.net> | 2007-05-03 12:27:39 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-05-03 12:27:39 +0200 |
commit | 5b35fad9d4fc2fcaf5c23887c1de1bc3eb28ab8c (patch) | |
tree | 5df3ba320ad239d2a856cf300d920118709d112a /fs/afs/cmservice.c | |
parent | [NETLINK]: Fix use after free in netlink_recvmsg (diff) | |
download | linux-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 '')
-rw-r--r-- | fs/afs/cmservice.c | 1 |
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); |