mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-26 20:46:58 +08:00
2010-07-25 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/gxx_wrappers.c: Free contents of key not key itself. Kye pointer will never be malloc'ed.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2010-07-25 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* libcsupport/src/gxx_wrappers.c: Free contents of key not key itself.
|
||||
Kye pointer will never be malloc'ed.
|
||||
|
||||
2010-07-24 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* libcsupport/Makefile.am, libcsupport/src/termios_baud2num.c,
|
||||
|
||||
@@ -122,9 +122,10 @@ int rtems_gxx_key_delete (__gthread_key_t key)
|
||||
status = rtems_task_variable_delete( RTEMS_SELF, (void **)key );
|
||||
if ( status == RTEMS_SUCCESSFUL ) {
|
||||
/* Hmm - hopefully all tasks using this key have gone away... */
|
||||
if ( key ) free( (void *)key );
|
||||
if ( key ) free( *(void **)key );
|
||||
return 0;
|
||||
}
|
||||
key = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user