[PATCH] eal: fix cleanup on Windows
Thomas Monjalon
thomas at monjalon.net
Fri Nov 8 22:57:28 CET 2024
08/11/2024 16:43, Mattias Rönnblom:
> On 2024-11-08 14:08, Thomas Monjalon wrote:
> > The memory allocated with _aligned_malloc()
> > must be released with _aligned_free() on Windows.
> >
> > The POSIX free() was called in eal_lcore_var_cleanup(),
>
> Referring to free() as a part of POSIX is true, but a bit misleading,
> since it's also standard C.
>
> > called in rte_eal_cleanup(), and triggered a heap corruption:
> > exit status 3221226356 or signal 3221226228 SIGinvalid
> > with MALLOC_PERTURB_=86
> >
> > Fixes: 5bce9bed67ad ("eal: add static per-lcore memory allocation facility")
> >
> > Reported-by: David Marchand <david.marchand at redhat.com>
> > Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
>
> Reviewed-by: Mattias Rönnblom <mattias.ronnblom at ericsson.com>
Applied
More information about the dev
mailing list