Bug #14714 2008-10-24 17:40

dvice_null

Mismatching allocation and deallocation in source_exporter

In file src/plugins/contrib/source_exporter/wxPdfDocument/src/pdffont.cpp:598

There is a mismatching allocation and deallocation with variable mbstr

In line 598 memory is deleted without []

delete mbstr;

While in lines 582 and 586 memory is allocated with []

char* mbstr = new char[len+3];

char* mbstr = new char[len+1];

In C++ if memory is allocated with [] it should be deleted with [] also.

Category
 
Group
 
Status
Closed
Close date
2008-10-25 16:02
Assigned to
biplab
dvice_null 2008-10-24 17:41

The above was found from svn revision 5285

biplab 2008-10-25 16:02

This bug is now fixed in HEAD.

Thank you for reporting it.