In the Linux kernel, the following vulnerability has been resolved:
mm/damon/reclaim: fix potential memory leak in damonreclaiminit()
damonreclaiminit() allocates a memory chunk for ctx with damonnewctx(). When damonselectops() fails, ctx is not released, which will lead to a memory leak.
We should release the ctx with damondestroyctx() when damonselectops() fails to fix the memory leak.