[PATCH] api: Remove deprecated task variables

Gedare Bloom gedare at rtems.org
Tue Mar 1 12:45:22 UTC 2016


On Mon, Feb 29, 2016 at 10:46 PM, Aun-Ali Zaidi <admin at kodeit.net> wrote:
> Task variables were a feature of RTEMS' Tasks which functioned in the same way
> as POSIX keys and TLS.
>
> In addition to their scarce usage they are not SMP safe.
>
> updates #2494.
> ---
This will be easier to review in chunks where possible. Start with
what Sebastian suggested, that we remove/replace the uses of task
vars.

> diff --git a/cpukit/librpc/src/rpc/clnt_raw.c b/cpukit/librpc/src/rpc/clnt_raw.c
> @@ -102,7 +102,7 @@ clntraw_create(
>                 clp = (struct clnt_raw_private *)calloc(1, sizeof (*clp));
>                 if (clp == 0)
>                         return (0);
> -               clntraw_private = clp;
> +               clp = clntraw_private;
this is a memory leak.



More information about the devel mailing list