Skip to content

Commit

Permalink
[AFS]: Fix memory leak in SRXAFSCB_GetCapabilities
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
kaber authored and davem330 committed May 3, 2007
1 parent 188ccb5 commit 5b35fad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/afs/cmservice.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5b35fad

Please sign in to comment.