Commit 84860c725364372a331589a600ce6a00437a14f8

Authored by Jesper Juhl
Committed by David S. Miller
1 parent 83fe32de63

ISDN, hfcsusb: Don't leak in hfcsusb_ph_info()

We leak the memory allocated to 'phi' when the variable goes out of scope
in hfcsusb_ph_info().

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/isdn/hardware/mISDN/hfcsusb.c
... ... @@ -283,6 +283,7 @@
283 283 _queue_data(&dch->dev.D, MPH_INFORMATION_IND, MISDN_ID_ANY,
284 284 sizeof(struct ph_info_dch) + dch->dev.nrbchan *
285 285 sizeof(struct ph_info_ch), phi, GFP_ATOMIC);
  286 + kfree(phi);
286 287 }
287 288  
288 289 /*