Skip to content

Use OSQPCscMatrix_free to free memory allocated with OSQPCscMatrix_new#61

Merged
imciner2 merged 1 commit intoosqp:develop-1.0from
traversaro:patch-3
Jun 2, 2025
Merged

Use OSQPCscMatrix_free to free memory allocated with OSQPCscMatrix_new#61
imciner2 merged 1 commit intoosqp:develop-1.0from
traversaro:patch-3

Conversation

@traversaro
Copy link
Copy Markdown
Contributor

Similar to #34 but for 1.0 .

@imciner2
Copy link
Copy Markdown
Member

imciner2 commented Jun 2, 2025

Not strictly necessary (since the OSQPCscMatrix is non-owning when used through the _new API, this call just boils down to the same c_free call), but doesn't hurt for consistency.

@imciner2 imciner2 merged commit 76e9ceb into osqp:develop-1.0 Jun 2, 2025
4 checks passed
@traversaro
Copy link
Copy Markdown
Contributor Author

Not strictly necessary (since the OSQPCscMatrix is non-owning when used through the _new API, this call just boils down to the same c_free call), but doesn't hurt for consistency.

Yes similarly to #34 this is only useful in the niche and unsupported case of osqp-matlab bindings linking against an existing osqp library that is not using the matlab allocator internally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants