From: Douglas Schilling Landgraf Date: Wed, 12 Nov 2008 02:47:57 +0000 (-0300) Subject: V4L/DVB (9604): ttusb_dec: fix memory leak X-Git-Tag: v2.6.28-rc7~1^2~21 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7935eeae793ff24e2d6053a9df63be71323ad634;p=linux-2.6-omap-h63xx.git V4L/DVB (9604): ttusb_dec: fix memory leak Free allocated memory Signed-off-by: Douglas Schilling Landgraf Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/ttusb-dec/ttusb_dec.c b/drivers/media/dvb/ttusb-dec/ttusb_dec.c index c1386e9b13d..0aa96df80fc 100644 --- a/drivers/media/dvb/ttusb-dec/ttusb_dec.c +++ b/drivers/media/dvb/ttusb-dec/ttusb_dec.c @@ -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,