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.12.8~11 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=88aea06bbbecfb73b70221b3441426e1e919896b;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. (cherry picked from commit baa1618e0f917017c1934b7da41250029c1791ef) --- diff --git a/fish/fish.c b/fish/fish.c index 3f420dc..85acacd 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -532,6 +532,8 @@ main (int argc, char *argv[]) if (progress_bars) progress_bar_free (bar); + guestfs_close (g); + exit (EXIT_SUCCESS); }