mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00: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-08-27 Joel Sherrill <joel.sherrilL@OARcorp.com>
|
||||
|
||||
PR 1693/filesystem
|
||||
|
||||
@@ -106,6 +106,7 @@ int rtems_gxx_key_create (__gthread_key_t *key, void (*dtor) (void *))
|
||||
/* register with RTEMS the buffer that will hold the key values */
|
||||
if( rtems_task_variable_add( RTEMS_SELF, (void **)new_key, dtor ) == RTEMS_SUCCESSFUL )
|
||||
return 0;
|
||||
free( new_key );
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user