Opened 16 years ago

Closed 16 years ago

Last modified 11 years ago

#3925 closed Bug report (fixed)

Mismatching allocation and deallocation: CHttpControlSocket::m_pRecvBuffer

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

Description

In file: src/engine/httpcontrolsocket.cpp:922
You delete the pointer without [] characters

delete m_pRecvBuffer;

But on line 202 it is created with the []
m_pRecvBuffer = new char[m_recvBufferLen];

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 (1)

comment:1 by Tim Kosse, 16 years ago

Resolution: fixed
Status: newclosed

Thanks for reporting this problem. Will be fixed in the next version.

Note: See TracTickets for help on using tickets.