projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
188ccb5
)
[AFS]: Fix memory leak in SRXAFSCB_GetCapabilities
author
Patrick McHardy
<kaber@trash.net>
Thu, 3 May 2007 10:27:39 +0000
(
03:27
-0700)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/fs/afs/cmservice.c
b/fs/afs/cmservice.c
index 6685f4cbccb334c7188a229e055158e364b73bf1..d5b2ad6575bc05dfe4a3af63ed0ee4f38f1be094 100644
(file)
--- 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);