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:05 +00:00
parent b0449da44a
commit cb914b4e06
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-10-19 Chris Johns <chrisj@rtems.org>
* libfs/src/rfs/rtems-rfs-rtems-file.c: Add missing unlock in

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