Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa976532 authored by Ilya Dryomov's avatar Ilya Dryomov Committed by Jens Axboe
Browse files

nbd: don't leak nbd_config



nbd_config is allocated in nbd_alloc_config(), but never freed.

Fixes: 5ea8d108 ("nbd: separate out the config information")
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
Reviewed-by: default avatarJosef Bacik <jbacik@fb.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent af622b86
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;