Skip to content

Memory leak in Utf8_16.cpp #14099

@trcrsired

Description

@trcrsired

if (!m_pFile->write(buf, bufIndex*sizeof(utf16))) return 0;

If the condition !m_pFile->write(buf, bufIndex * sizeof(utf16)) evaluates to true, the delete[] operation will never be executed, potentially leading to a memory leak. Additionally, throwing exceptions might also trigger memory leak scenarios.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions