[Bug 523938] New: coreboot-utils-r3852-2.7: possible memory leak
http://bugzilla.novell.com/show_bug.cgi?id=523938 Summary: coreboot-utils-r3852-2.7: possible 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 coreboot-utils-r3852-2.7 For source code file flashrom-svn-r3852/flashrom.c, around line 171 is the source code for the function verify_flash. I notice the following code uint8_t *buf2 = (uint8_t *) calloc(total_size, sizeof(char)); but no matching call to free. This looks like a memory leak to me. Suggest code rework by adding a call to free near the end of the routine. Maybe printf("VERIFIED. \n"); free( buf2); would be enough. -- 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=523938
Marcus Meissner
http://bugzilla.novell.com/show_bug.cgi?id=523938
User trenn@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=523938#c1
Thomas Renninger
http://bugzilla.novell.com/show_bug.cgi?id=523938
User dcb314@hotmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=523938#c2
David Binderman
Hmm, I updated to version 0.9.0.
If the bug still is present, best write to the mailing list there.
So you upgraded to latest version, *without* checking if the bug is fixed there or not ? A somewhat novel and courageous solution, if I may say so. I'd be happier if the latest version were checked before upgrading to it. -- 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=523938
User trenn@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=523938#c3
Thomas Renninger
http://bugzilla.novell.com/show_bug.cgi?id=523938
User trenn@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=523938#c4
Thomas Renninger
participants (1)
-
bugzilla_noreply@novell.com