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

Memory leak in logger #954

Closed
awillenbuecher-xq-tec opened this issue Aug 31, 2023 · 0 comments · Fixed by #956
Closed

Memory leak in logger #954

awillenbuecher-xq-tec opened this issue Aug 31, 2023 · 0 comments · Fixed by #956

Comments

@awillenbuecher-xq-tec
Copy link
Contributor

There's a memory leak in the log procedure of the logger_pkg. A string is allocated in get_location, but not released. When I add a deallocate before the end of the procedure, the problem disappears:

      -- Count even if disabled
      count_log(logger, log_level);
    end if;
    deallocate(location.file_name);
  end procedure;

Since this function is indirectly called even for passing checks, the memory consumption can quickly get out of hand: Several of my testcases devour several GiB of RAM after running for a few minutes.

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

Successfully merging a pull request may close this issue.

2 participants