diff options
author | Syam Sidhardhan <syamsidhardh@gmail.com> | 2013-02-24 16:49:43 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-18 15:39:08 -0400 |
commit | 972b072a83316e0d5a1fd0cb78eb99a57a305dce (patch) | |
tree | f6162146db3319b169a1cb0a05430f2d6d13171b | |
parent | 06f950f43f29eb0b5631c6d037d78319649ac3b0 (diff) |
[media] hdpvr: Fix memory leak
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>
-rw-r--r-- | drivers/media/usb/hdpvr/hdpvr-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/usb/hdpvr/hdpvr-core.c b/drivers/media/usb/hdpvr/hdpvr-core.c index 5c6193536399..73195fe7871c 100644 --- a/drivers/media/usb/hdpvr/hdpvr-core.c +++ b/drivers/media/usb/hdpvr/hdpvr-core.c | |||
@@ -196,6 +196,7 @@ static int device_authorization(struct hdpvr_device *dev) | |||
196 | hex_dump_to_buffer(response, 8, 16, 1, print_buf, 5*buf_size+1, 0); | 196 | hex_dump_to_buffer(response, 8, 16, 1, print_buf, 5*buf_size+1, 0); |
197 | v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, " response: %s\n", | 197 | v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, " response: %s\n", |
198 | print_buf); | 198 | print_buf); |
199 | kfree(print_buf); | ||
199 | #endif | 200 | #endif |
200 | 201 | ||
201 | msleep(100); | 202 | msleep(100); |