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:51:34 +00:00
parent c8b3806d1a
commit 80675f0d64
2 changed files with 7 additions and 0 deletions
+5
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-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/monitor/mon-monitor.c: Move node code into multiprocessing
+2
View File
@@ -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;
}