Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Free lua state memory on error #1107

Merged
merged 1 commit into from
Dec 10, 2021

Conversation

AnHeuermann
Copy link
Member

Related Issues

While debugging tlmsignals.lua I noticed that we leak memory in an error case.

Purpose

Don't leak memory.

Approach

Call the free function before returning an error.

@lochel lochel merged commit 08f93f8 into OpenModelica:master Dec 10, 2021
@AnHeuermann AnHeuermann deleted the free-luad-on-error branch December 10, 2021 14:40
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