On Mon, Feb 29, 2016 at 10:46 PM, Aun-Ali Zaidi <ad...@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. _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel