[PATCH 4/4] score: Free old name in _Objects_Set_name()
Gedare Bloom
gedare at rtems.org
Wed Nov 25 17:29:30 UTC 2020
These 4 patches look good to me
On Tue, Nov 24, 2020 at 5:52 AM Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:
> This is the behaviour document in the RTEMS Classic API Guide.
> ---
> cpukit/score/src/objectsetname.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/cpukit/score/src/objectsetname.c
> b/cpukit/score/src/objectsetname.c
> index 4d85332711..4cb19bd360 100644
> --- a/cpukit/score/src/objectsetname.c
> +++ b/cpukit/score/src/objectsetname.c
> @@ -40,6 +40,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 ];
> --
> 2.26.2
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20201125/6f3bb6cc/attachment.html>
More information about the devel
mailing list