]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
[media] hdpvr: Fix memory leak
authorSyam Sidhardhan <syamsidhardh@gmail.com>
Sun, 24 Feb 2013 21:49:43 +0000 (18:49 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 18 Mar 2013 19:39:08 +0000 (16:39 -0300)
This patch fixes the print_buf leaking.

Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/hdpvr/hdpvr-core.c

index 5c61935363993fcdc84b7269ecf2bccb9d787004..73195fe7871cbc36c105f6f48e0e76458edd6817 100644 (file)
@@ -196,6 +196,7 @@ static int device_authorization(struct hdpvr_device *dev)
        hex_dump_to_buffer(response, 8, 16, 1, print_buf, 5*buf_size+1, 0);
        v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, " response: %s\n",
                 print_buf);
+       kfree(print_buf);
 #endif
 
        msleep(100);