]> err.no Git - linux-2.6/commitdiff
[AFS]: Fix memory leak in SRXAFSCB_GetCapabilities
authorPatrick McHardy <kaber@trash.net>
Thu, 3 May 2007 10:27:39 +0000 (03:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 May 2007 10:27:39 +0000 (03:27 -0700)
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>
fs/afs/cmservice.c

index 6685f4cbccb334c7188a229e055158e364b73bf1..d5b2ad6575bc05dfe4a3af63ed0ee4f38f1be094 100644 (file)
@@ -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);