[Bug 542341] New: sane-backends-1.0.20-4.11: memory leak
http://bugzilla.novell.com/show_bug.cgi?id=542341 Summary: sane-backends-1.0.20-4.11: memory leak Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: All OS/Version: openSUSE 11.1 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 sane-backends-1.0.20-4.11 For source code file sane-backends-1.0.20/backend/lexmark_low.c around line 2480, function sanei_lexmark_low_find_start_line is the following code buffer = calloc (5192, sizeof (char)); but I fail to notice a matching call to free. This looks like a memory leak to me. Suggest add call to free. -- 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=542341 Marcus Meissner <meissner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |jsmeix@novell.com |ovo.novell.com | -- 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=542341 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |ASSIGNED OS/Version|openSUSE 11.1 |SuSE Other -- 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=542341 User jsmeix@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=542341#c1 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 - Medium |P4 - Low Severity|Normal |Minor --- Comment #1 from Johannes Meixner <jsmeix@novell.com> 2009-09-30 04:25:21 MDT --- I agree that a matching call to free is missing. The sanei_lexmark_low_find_start_line function is called only once as offset = sanei_lexmark_low_find_start_line (lexmark_device); in the sane_start function in lexmark.c The sane_start function is usually called only once for a scan job. Therefore in the end the above allocation happens only once for a scan job and after the job the SANE backend exits which implicitely frees all allocated memory. Therefore it is only a minor memory leak issue. -- 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=542341 User jsmeix@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=542341#c2 --- Comment #2 from Johannes Meixner <jsmeix@novell.com> 2009-09-30 04:51:29 MDT --- Created an attachment (id=320434) --> (http://bugzilla.novell.com/attachment.cgi?id=320434) fix-lexmark_low-memory-leak.patch The upstream bug report is https://alioth.debian.org/tracker/index.php?func=detail&aid=311990&group_id=30186&atid=410366 -- 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=542341 User jsmeix@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=542341#c3 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Target Milestone|--- |Factory --- Comment #3 from Johannes Meixner <jsmeix@novell.com> 2009-09-30 08:23:39 MDT --- Submitted to openSUSE:Factory: 21422 State:new Creator:jsmeix When:2009-09-30T16:18:01 submit: graphics/sane-backends -> openSUSE:Factory Comment: 'fix bnc#535752 (hp3900 scanner driver lets xsane crash) and bnc#542341 (adds a missing call to free)' -- 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=542341 http://bugzilla.novell.com/show_bug.cgi?id=542341#c5 --- Comment #5 from Bernhard Wiedemann <bwiedemann@suse.com> --- This is an autogenerated message for OBS integration: This bug (542341) was mentioned in https://build.opensuse.org/request/show/21422 Factory / sane-backends -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com