net: do not use atexit for cleanup
commit8caf911d3316b6eccc503cff0d9a68cf922950f1
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 8 Jul 2016 15:28:34 +0000 (8 17:28 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Jul 2016 11:30:00 +0000 (13 13:30 +0200)
treeee13b636f718e650c665bbbeecfc9f39b45ad710
parentf6c2e66ae8c8a03d3044dc9054aa7c16e7f817ee
net: do not use atexit for cleanup

This will be necessary in the next patch, which stops using atexit for
character devices; without it, vhost-user and the redirector filter
will cause a use-after-free.  Relying on the ordering of atexit calls
is also brittle, even now that both the network and chardev
subsystems are using atexit.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
vl.c