diff options
author | Douglas Schilling Landgraf <dougsland@linuxtv.org> | 2008-11-12 00:47:57 -0200 |
---|---|---|
committer | Douglas Schilling Landgraf <dougsland@linuxtv.org> | 2008-11-12 00:47:57 -0200 |
commit | cc6988d1d04471ba46cd740cca95c3fddfefc7bf (patch) | |
tree | 8d1d3455ccbf83b540583825b27395b10b499858 /linux | |
parent | 008d3cb607b312c44919e629541ff1e5cc12ae43 (diff) | |
download | mediapointer-dvb-s2-cc6988d1d04471ba46cd740cca95c3fddfefc7bf.tar.gz mediapointer-dvb-s2-cc6988d1d04471ba46cd740cca95c3fddfefc7bf.tar.bz2 |
ttusb_dec: fix memory leak
From: Douglas Schilling Landgraf <dougsland@linuxtv.org>
Free allocated memory
Priority: high
Signed-off-by: Douglas Schilling Landgraf <dougsland@linuxtv.org>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c b/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c index 9259cfe54..7cfc2e4d0 100644 --- a/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c +++ b/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c @@ -1269,6 +1269,7 @@ static int ttusb_dec_init_usb(struct ttusb_dec *dec) dec->irq_buffer = usb_buffer_alloc(dec->udev,IRQ_PACKET_SIZE, GFP_ATOMIC, &dec->irq_dma_handle); if(!dec->irq_buffer) { + usb_free_urb(dec->irq_urb); return -ENOMEM; } usb_fill_int_urb(dec->irq_urb, dec->udev,dec->irq_pipe, |