File luvcview-memory-leaks.patch of Package luvcview

Index: v4l2uvc.c
===================================================================
--- v4l2uvc.c.orig
+++ v4l2uvc.c
@@ -225,6 +225,8 @@ int enum_controls(int vd) //struct vdIn
   return 0;
  fatal_controls:
   return -1;  
+
+  free(getinput);
 }
 int save_controls(int vd)
 { 
@@ -426,6 +428,7 @@ static int init_v4l2(struct vdIn *vd)
   fatal:
     return -1;
 
+  free(setfps);
 }
 
 static int video_enable(struct vdIn *vd)
openSUSE Build Service is sponsored by