In the Linux kernel, the following vulnerability has been resolved: Fix memory leak in posix_clock_open() If the clk ops.open() function returns an error, we don't release the pccontext we allocated for this clock. Re-organize the code slightly to make it all more obvious.
https://git.kernel.org/stable/c/a88649b49523e8cbe95254440d803e38c19d2341
https://git.kernel.org/stable/c/5b4cdd9c5676559b8a7c944ac5269b914b8c0bb8
https://git.kernel.org/stable/c/0200dd7ed2335469955d7e69cc1a6fa7df1f3847