[Bug 533540] New: bzflag-2.0.12-1.103: memory deallocation mixup
http://bugzilla.novell.com/show_bug.cgi?id=533540 Summary: bzflag-2.0.12-1.103: memory deallocation mixup 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 bzflag-2.0.12-1.103 For source code file bzflag-2.0.12/plugins/python/python.cpp, around line 70, function PluginHandler::handle is the following code char *dir = new char[len + 1]; then free (dir); This looks like a mixup between C++ allocation and C deallocation. Suggest replace call to free with delete [] dir; dir = NULL; -- 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=533540
Marcus Meissner
http://bugzilla.novell.com/show_bug.cgi?id=533540
User rguenther@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=533540#c1
--- Comment #1 from Richard Guenther
https://bugzilla.novell.com/show_bug.cgi?id=533540
https://bugzilla.novell.com/show_bug.cgi?id=533540#c2
Hendrik Vogelsang
participants (1)
-
bugzilla_noreply@novell.com