[Bug 547895] New: luvcview-20070512-3.54: two memory leaks
http://bugzilla.novell.com/show_bug.cgi?id=547895 Summary: luvcview-20070512-3.54: two memory leaks Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: All OS/Version: openSUSE 11.2 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dcb314@hotmail.com QAContact: qa@suse.de Found By: --- I just had a look at factory package luvcview-20070512-3.54 source code file luvcview-20070512/v4l2uvc.c 1. function enum_controls I notice the following code getinput=(struct v4l2_input *) calloc(1, sizeof(struct v4l2_input)); but I fail to notice any matching call to free. This looks like a memory leak to me. Suggest add call to free near the end of the block. 2. function init_v4l2 I notice the following code setfps=(struct v4l2_streamparm *) calloc(1, sizeof(struct v4l2_streamparm)); but I fail to notice any matching call to free. This looks like a memory leak to me. Suggest add call to free near the end of the block. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=547895
Andreas Jaeger
http://bugzilla.novell.com/show_bug.cgi?id=547895
User rguenther@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=547895#c1
--- Comment #1 from Richard Guenther
http://bugzilla.novell.com/show_bug.cgi?id=547895
http://bugzilla.novell.com/show_bug.cgi?id=547895#c2
Kevin Polulak
https://bugzilla.novell.com/show_bug.cgi?id=547895
https://bugzilla.novell.com/show_bug.cgi?id=547895#c4
zj jia
participants (1)
-
bugzilla_noreply@novell.com