[openrtm-users 01448] Mismatched delete in StateMachine.h

2 posts / 0 new
Last post
root
Offline
Last seen: 2 days 4 hours ago
Joined: 2009-06-23 14:31
[openrtm-users 01448] Mismatched delete in StateMachine.h

Hi,

I found a mismatched delete in StateMachine.h which was part of a
segfault-problem in our application. Basically, arrays were created on
the heap with "new" and deleted with "delete" instead of "delete []".

I attached the patch.

Cheers
Steffen Wittmeier

Undefined
root
Offline
Last seen: 2 days 4 hours ago
Joined: 2009-06-23 14:31
[openrtm-users 01450] Mismatched delete in StateMachine.h

Hello Steffen

Thanks a lot!! That's quite C++ beginners mistake. I'm ashamed(^^;

Best regards,
Noriaki Ando

2010/11/3 Steffen Wittmeier :
> Hi,
>
> I found a mismatched delete in StateMachine.h which was part of a
> segfault-problem in our application. Basically, arrays were created on the
> heap with "new" and deleted with "delete" instead of "delete []".
>
> I attached the patch.
>
>
> Cheers
> Steffen Wittmeier
>

Log in or register to post comments

Download

latest Releases : 2.0.0-RELESE

2.0.0-RELESE Download page

Number of Projects

Choreonoid

Motion editor/Dynamics simulator

OpenHRP3

Dynamics simulator

OpenRTP

Integrated Development Platform

AIST RTC collection

RT-Components collection by AIST

TORK

Tokyo Opensource Robotics Association

DAQ-Middleware

Middleware for DAQ (Data Aquisition) by KEK