Author: Olaf Hering <[hidden email]>
AuthorDate: Wed Nov 28 13:24:34 2018 +0100
Commit: Wei Liu <[hidden email]>
CommitDate: Fri Nov 30 12:37:52 2018 +0000
xl: free bitmaps on exit
Every invocation of xl via valgrind will show three leaks.
Since libxl_bitmap_alloc uses NOGC, the caller has to free the memory
after use. And since xl_ctx_free might be called before
parse_global_config, also move the libxl_bitmap_init calls into
Also move the call to atexit() after xl_ctx_alloc, because the latter is
also called again in postfork.