Skip to content

Commit

Permalink
[IRDA]: Fix memory leak in irttp_init()
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Dobriyan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Alexey Dobriyan authored and davem330 committed Sep 24, 2005
1 parent 45fc3b1 commit 15166fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/irda/irttp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 15166fa

Please sign in to comment.