From: Richard W.M. Jones Date: Thu, 13 Oct 2011 10:54:18 +0000 (+0100) Subject: fish: Close guestfs handle explicitly before exiting. X-Git-Tag: 1.13.21~19 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=baa1618e0f917017c1934b7da41250029c1791ef;p=libguestfs.git fish: Close guestfs handle explicitly before exiting. NOTE this is just a cleanup. It is NOT necessary for correctness, since libguestfs itself is correctly closing the handle in the exit handler. --- diff --git a/fish/fish.c b/fish/fish.c index 3104c40..7b45fec 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -547,6 +547,8 @@ main (int argc, char *argv[]) if (progress_bars) progress_bar_free (bar); + guestfs_close (g); + exit (EXIT_SUCCESS); }