mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-03 20:11:24 +08:00
score: Free old name in _Objects_Set_name()
This is the behaviour document in the RTEMS Classic API Guide.
This commit is contained in:
@@ -41,6 +41,7 @@ Status_Control _Objects_Set_name(
|
||||
return STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
_Workspace_Free( the_object->name.name_p );
|
||||
the_object->name.name_p = dup;
|
||||
} else {
|
||||
char c[ 4 ];
|
||||
|
||||
Reference in New Issue
Block a user