Opened 6 years ago

Closed 6 years ago

#30 closed user support (fixed)

How to delete QProblem object?

Reported by: grimmehesten Owned by: ferreau
Priority: normal Milestone:
Component: C++ core Version: 3.0.0
Keywords: Cc:


After the last QP problem has been solved how do I delete the QProblem object? What else do I need to delete in order to avoid memory leaks?

Change History (1)

comment:1 Changed 6 years ago by ferreau

  • Resolution set to fixed
  • Status changed from new to closed

In general, the destructor of the (S)QProblem(B) class will take care of freeing all internal memory. If you allocated the object dynamically (e.g. using new), you need to free it the usual way after its last use.

If that does not answer your question, please be more specific. If you encounter a memory leak when using qpOASES, please send us a code snippet to reproduce the issue such that we can fix it.

Note: See TracTickets for help on using tickets.