nbd: don't leak nbd_config
authorIlya Dryomov <idryomov@gmail.com>
Tue, 23 May 2017 15:49:55 +0000 (17:49 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 30 May 2017 14:15:08 +0000 (08:15 -0600)
commitfa9765323a93473d3853d04c9903958453c92ad4
treeba9a0ea9a1221ad936fabb106af7cfd0818ed592
parentaf622b86665881ffa96bc77fb89c94fae02cfa6b
nbd: don't leak nbd_config

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

Fixes: 5ea8d10802ec ("nbd: separate out the config information")
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nbd.c