fish: Close guestfs handle explicitly before exiting.
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 13 Oct 2011 10:54:18 +0000 (11:54 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 13 Oct 2011 14:25:13 +0000 (15:25 +0100)
NOTE this is just a cleanup.  It is NOT necessary for correctness,
since libguestfs itself is correctly closing the handle in the exit
handler.

fish/fish.c

index 3104c40..7b45fec 100644 (file)
@@ -547,6 +547,8 @@ main (int argc, char *argv[])
   if (progress_bars)
     progress_bar_free (bar);
 
   if (progress_bars)
     progress_bar_free (bar);
 
+  guestfs_close (g);
+
   exit (EXIT_SUCCESS);
 }
 
   exit (EXIT_SUCCESS);
 }