mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-16 19:04:53 +08:00
In rtems_gpio_define_pin_group(), several malloc() calls did not check their return values. This could lead to NULL pointer dereferences in later initialization steps. The previous error handling also leaked memory and hardware pin resources if an intermediate step. This patch refactors the error handling path to address these issues.