Heap memory leak when using gpio_install_isr_service and gpio_uninstall_isr_service (IDFGH-14172) #14973
Closed
3 tasks done
Labels
Awaiting Response
awaiting a response from the author
Resolution: NA
Issue resolution is unavailable
Status: Done
Issue is done internally
Answers checklist.
General issue report
Title: Heap memory leak when using
gpio_install_isr_service
andgpio_uninstall_isr_service
Description:
I encountered a heap memory leak issue while testing the
gpio_install_isr_service
andgpio_uninstall_isr_service
functions in my ESP-IDF project. When these functions are called, 16 bytes of heap memory remain unreleased, causing a memory leak.Steps to reproduce:
gpio_install_isr_service
with default flags.gpio_uninstall_isr_service
.Observed behavior:
The output of the above code is:
Expected behavior:
After calling
gpio_uninstall_isr_service
, the heap memory should be fully released, and the difference should be0
.ESP-IDF version:
Environment:
Additional notes:
This issue might accumulate over time if the
gpio_install_isr_service
andgpio_uninstall_isr_service
functions are used repeatedly in a long-running application, leading to eventual heap exhaustion.The text was updated successfully, but these errors were encountered: