]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (9604): ttusb_dec: fix memory leak
authorDouglas Schilling Landgraf <dougsland@linuxtv.org>
Wed, 12 Nov 2008 02:47:57 +0000 (23:47 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 17 Nov 2008 01:54:44 +0000 (23:54 -0200)
Free allocated memory

Signed-off-by: Douglas Schilling Landgraf <dougsland@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/ttusb-dec/ttusb_dec.c

index c1386e9b13d357d1814d3e98037bfe6b27bbf29c..0aa96df80fc2bad8337263e1c23cc9b234f78885 100644 (file)
@@ -1260,6 +1260,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,