mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 05:47:56 +08:00
2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1717/cpukit * libcsupport/src/gxx_wrappers.c: Free memory on error.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
PR 1717/cpukit
|
||||
* libcsupport/src/gxx_wrappers.c: Free memory on error.
|
||||
|
||||
2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* libmisc/monitor/mon-monitor.c: Move node code into multiprocessing
|
||||
|
||||
@@ -80,6 +80,8 @@ int rtems_gxx_key_create (__gthread_key_t *key, void (*dtor) (void *))
|
||||
status = rtems_task_variable_add( RTEMS_SELF, (void **)new_key, dtor );
|
||||
if ( status == RTEMS_SUCCESSFUL )
|
||||
return 0;
|
||||
|
||||
free( new_key );
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user