Re: [PATCH net-next] netdevsim: dev: Fix memory leak in nsim_dev_take_snapshot_write

From: Jakub Kicinski
Date: Mon Mar 30 2020 - 19:38:41 EST


On Mon, 30 Mar 2020 18:27:02 -0500 Gustavo A. R. Silva wrote:
> In case memory resources for dummy_data were allocated, release them
> before return.
>
> Addresses-Coverity-ID: 1491997 ("Resource leak")
> Fixes: 7ef19d3b1d5e ("devlink: report error once U32_MAX snapshot ids have been used")
> Signed-off-by: Gustavo A. R. Silva <gustavo@xxxxxxxxxxxxxx>

Reviewed-by: Jakub Kicinski <kuba@xxxxxxxxxx>