Ticket #3926 (closed Bug report: fixed)

Opened 5 years ago

Last modified 5 years ago

Mismatching allocation and deallocation: CNetConfWizard::m_pSendBuffer

Reported by: dvice_null Owned by:
Priority: normal Component: Unknown
Keywords: Cc:
Operating system type: Operating system version:

Description

In file: src/interface/netconfwizard.cpp:315
You delete the pointer without [] characters

delete m_pSendBuffer;

But on line 665 it is created with the []
m_pSendBuffer = new char[len + 1];

This is illegal in C++. If memory is allocated with [] it should be deleted with [] also. Please check and fix if I'm not mistaken.

Change History

Changed 5 years ago by codesquid

  • status changed from new to closed
  • resolution set to fixed

Thanks once more.

Note: See TracTickets for help on using tickets.