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:
Joel Sherrill
2010-11-16 18:52:14 +00:00
parent 15d89e0500
commit c4c3a1c3db
2 changed files with 6 additions and 0 deletions

View File

@@ -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

View File

@@ -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;
}