[jira] [Created] (XERCESC-2214) Wrong delete[] in MemBufInputSource dtor
"Tobias Elbrandt (Jira)" <[email protected]>
| Newsgroups | gmane.text.xml.xerces-c.devel |
|---|---|
| Message-ID | <[email protected]> |
Tobias Elbrandt created XERCESC-2214:
----------------------------------------
Summary: Wrong delete[] in MemBufInputSource dtor
Key: XERCESC-2214
URL: https://issues.apache.org/jira/browse/XERCESC-2214
Project: Xerces-C++
Issue Type: Bug
Components: Miscellaneous
Affects Versions: 3.2.2
Reporter: Tobias Elbrandt
Our address sanatizer found a mismatching delete[] for memory allocated via {{new}} (not {{new[]}}) in the destructor of {color:#000000}MemBufInputSource{color}.
I looked at the code to find places where {{new[]}} is used which would make it necessary to use {{delete[]}} instead of {{delete}} - without success. It seems to me that using {{delete[]}} is simply wrong here.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)