Share

IBM Jikes Compiler for the Java Language

Tracker: Bugs

5 jikes-1.22-138.13 : call to wrong C++ delete - ID: 2262338
Last Update: Tracker Item Submitted ( nobody )

Moved from https://bugzilla.novell.com/show_bug.cgi?id=443666

I just checked some of the source code in the Suse Linux Factory package
jikes-1.22-138.13 and I noticed the following:

$ egrep "new|delete" ../BUILD/jikes-1.22/src/class.cpp | fgrep
unicode_problem
wchar_t* unicode_problem = new wchar_t[length + 1];
delete unicode_problem;

The call to delete seems to be wrong.
Suggest new code

delete [] unicode_problem; unicode_problem = NULL;


Nobody/Anonymous ( nobody ) - 2008-11-11 13:16

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.