Skip to contentSkip to conversation

hdpvr: Fix memory leak

PATCH New Syam Sidhardhan 1 participant 1 message Feb 24, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hdpvr: Fix memory leak

This patch fixes the print_buf leaking.

---
 drivers/media/usb/hdpvr/hdpvr-core.c |    1 +
 1 file changed, 1 insertion(+)
drivers/media/usb/hdpvr/hdpvr-core.c +1 -0
index 5c61935..73195fe 100644
@@ -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);
Signature · 1 line
1.7.9.5