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

Dangeling pointer? #12

Open
bear101 opened this issue Jul 25, 2018 · 1 comment
Open

Dangeling pointer? #12

bear101 opened this issue Jul 25, 2018 · 1 comment

Comments

@bear101
Copy link

bear101 commented Jul 25, 2018

https://github.com/Linutronix/libuio/blob/ca28ff0f69d89a789a47552c72db5a43d280710b/base.c#L270

Doesn't 'info' point to an element in 'uio_list' which was just freed two lines before?

@modbw
Copy link
Contributor

modbw commented Sep 2, 2021

No

libuio/base.c

Line 268 in ca28ff0

free (uio_list);
only frees uio_list but not its contents. But uio_find_by_uio_name leaks memory which I try to fix in #20

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

2 participants