projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[IRDA]: Fix memory leak in irttp_init()
[powerpc.git]
/
net
/
irda
/
irttp.c
diff --git
a/net/irda/irttp.c
b/net/irda/irttp.c
index
6602d90
..
1df6487
100644
(file)
--- a/
net/irda/irttp.c
+++ b/
net/irda/irttp.c
@@
-100,6
+100,7
@@
int __init irttp_init(void)
if (!irttp->tsaps) {
IRDA_ERROR("%s: can't allocate IrTTP hashbin!\n",
__FUNCTION__);
+ kfree(irttp);
return -ENOMEM;
}