[RTEMS Project] #2462: shared/gpio.c possible memory leaks

RTEMS trac trac at rtems.org
Mon Nov 9 18:41:54 UTC 2015

#2462: shared/gpio.c possible memory leaks
 Reporter:  gedare   |      Owner:
     Type:  defect   |     Status:  new
 Priority:  normal   |  Milestone:  4.11.1
Component:  General  |    Version:  4.11
 Severity:  normal   |   Keywords:
 rtems_gpio_enable_interrupt() in libbsp/shared/gpio.c should free the
 interrupt_state in case of a failure to

 Also, the "if ( threaded_handling ) {" section the two error paths that
 return RTEMS_UNSATISFIED should undo the
 rtems_gpio_interrupt_handler_install of the pin handler and also free the

Ticket URL: <http://devel.rtems.org/ticket/2462>
RTEMS Project <http://www.rtems.org/>
RTEMS Project

More information about the bugs mailing list