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 get_lmbs #102

Open
davemq opened this issue Nov 19, 2024 · 0 comments
Open

Memory leak in get_lmbs #102

davemq opened this issue Nov 19, 2024 · 0 comments

Comments

@davemq
Copy link

davemq commented Nov 19, 2024

In get_lmbs() there's a code path for the case where stat(DYNAMIC_RECONFIG_MEM, &sbuf) fails. In that case, there's this code:

	if (stat(DYNAMIC_RECONFIG_MEM, &sbuf)) {
		struct dr_connector *drc_list, *drc;

		drc_list = get_drc_info(OFDT_BASE);

drc_list is never freed in this code.

I don't know if this is ever seen in practice. Given drmgr is typically a short-lived process, this may be a low priority to fix.

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

No branches or pull requests

1 participant