score: Free old name in _Objects_Set_name()

This is the behaviour document in the RTEMS Classic API Guide.
This commit is contained in:
Sebastian Huber
2020-12-03 07:12:12 +01:00
parent 766009b4f1
commit e2f888d145
+1
View File
@@ -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 ];