#4 Memory leak in usb_m560x_probe()

closed-fixed
nobody
None
5
2007-09-26
2007-09-11
No

Also clear cam->hashtab

--- m560x_core.c (revision 97)
+++ m560x_core.c (copie de travail)
@@ -2846,9 +2894,13 @@

fail:
if (cam) {
- kfree(cam->control_buffer);
if (cam->vdev)
video_device_release(cam->vdev);
+ if (cam->hashtab){
+ clear_hashtab(cam->hashtab);
+ kfree(cam->hashtab);
+ }
+ kfree(cam->control_buffer);
kfree(cam);
}
return error;

Discussion

  • patch

     
    Attachments
  • whereami
    whereami
    2007-09-26

    Logged In: YES
    user_id=703172
    Originator: NO

    Committed in revision 98.

     
  • whereami
    whereami
    2007-09-26

    • status: open --> closed-fixed