diff options
Diffstat (limited to 'block')
-rw-r--r-- | block/nbd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/block/nbd.c b/block/nbd.c index 5ff8a57..dc6c3f3 100644 --- a/block/nbd.c +++ b/block/nbd.c @@ -110,6 +110,10 @@ static void nbd_clear_bdrvstate(BlockDriverState *bs) yank_unregister_instance(BLOCKDEV_YANK_INSTANCE(bs->node_name)); + /* Must not leave timers behind that would access freed data */ + assert(!s->reconnect_delay_timer); + assert(!s->open_timer); + object_unref(OBJECT(s->tlscreds)); qapi_free_SocketAddress(s->saddr); s->saddr = NULL; |