Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=5b35fad9d4fc2fcaf5c23887c1de1bc3eb28ab8c Commit: 5b35fad9d4fc2fcaf5c23887c1de1bc3eb28ab8c Parent: 188ccb5583b8f501e1d0f5ba4f056afa141694e7 Author: Patrick McHardy <[EMAIL PROTECTED]> AuthorDate: Thu May 3 03:27:39 2007 -0700 Committer: David S. Miller <[EMAIL PROTECTED]> CommitDate: Thu May 3 03:27:39 2007 -0700
[AFS]: Fix memory leak in SRXAFSCB_GetCapabilities The interface array is not freed on exit. Signed-off-by: Patrick McHardy <[EMAIL PROTECTED]> Signed-off-by: David Howells <[EMAIL PROTECTED]> Signed-off-by: David S. Miller <[EMAIL PROTECTED]> --- 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 6685f4c..d5b2ad6 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); - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html