summaryrefslogtreecommitdiff
path: root/fs/afs
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-05-03 03:27:39 -0700
committerDavid S. Miller <davem@davemloft.net>2007-05-03 03:27:39 -0700
commit5b35fad9d4fc2fcaf5c23887c1de1bc3eb28ab8c (patch)
tree5df3ba320ad239d2a856cf300d920118709d112a /fs/afs
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/afs')
-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);