Skip to content

A memory leak in VFRRT #839

Closed
Closed
@bromiao123

Description

When I’m testing ompl, here is a memory leak occured. After positioning,we found that the error is caused by the following code in VFRRT.cpp:

图片1

In line 169.A motion object was requested with it’s constructor,and also new a state in that motion.but in line 170, the state in motion was assigned. The space applied in the constructor becomes a wild space.That’s why memory leaks.
We suggest to use the default constructor in line 169.like that:
图片2

I did my experiment on Ubuntu 16.04

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions