diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-10-13 11:54:18 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-10-13 15:25:13 +0100 |
commit | baa1618e0f917017c1934b7da41250029c1791ef (patch) | |
tree | 0f4a10c61a1135b9b1f4e305890c43c8a8b48ef8 /fish/fish.c | |
parent | 049116e1810680275a42faba430fb2f798cb17d8 (diff) | |
download | libguestfs-baa1618e0f917017c1934b7da41250029c1791ef.tar.gz libguestfs-baa1618e0f917017c1934b7da41250029c1791ef.tar.xz libguestfs-baa1618e0f917017c1934b7da41250029c1791ef.zip |
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.
Diffstat (limited to 'fish/fish.c')
-rw-r--r-- | fish/fish.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fish/fish.c b/fish/fish.c index 3104c407..7b45fec7 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); } |