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 dont release the
pccontext we allocated for this clock.
Re-organize the code slightly to make it all more obvious.
References