[dm-devel] [PATCH 5/5] kpartx: Don't leak memory when getblock returns NULL

Martin Wilck martin.wilck at suse.com
Wed May 12 12:39:17 UTC 2021


On Tue, 2021-05-11 at 18:22 -0500, Benjamin Marzinski wrote:
> If a new block was allocated, but couldn't be filled, getblock will
> discard it. When it does so, it needs to free the block to avoid
> leaking
> memory. Found by coverity.
> 
> Signed-off-by: Benjamin Marzinski <bmarzins at redhat.com>

Reviewed-by: Martin Wilck <mwilck at suse.com>





More information about the dm-devel mailing list