-
Notifications
You must be signed in to change notification settings - Fork 613
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 called twice when gpio closed with Isr enabled #1065
Comments
I think you're on to something, the call in |
Yes it is showing error for double free. After calling free we are not assigning null. So inside the |
@Propanu Can I create a branch and provide the fix for the same. |
By all means. I will also list this as a bug so it can be included with the next set of patches. |
Hi, What's the status resolving this bug? |
In mraa_gpio_close(mraa_gpio_context dev)
mraa_gpio_isr_exit(dev);
In mraa_gpio_isr_exit(mraa_gpio_context dev)
Since the dev->events is not assigned null, double free happens. The freeing of events should be defined inside the
mraa_gpio_isr_exit. Two places is not correct
The text was updated successfully, but these errors were encountered: