diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index e725d8d5ab0b2e321399f00804dd00d953f7184b..f3f191ba8ca4bbe6b7d87a7accc84bd648e4d718 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c @@ -1021,6 +1021,7 @@ static void nbd_config_put(struct nbd_device *nbd) } kfree(config->socks); } + kfree(nbd->config); nbd->config = NULL; nbd->tag_set.timeout = 0;