inspect: Fix error out path if minor_version parsing fails.
authorRichard W.M. Jones <rjones@redhat.com>
Sat, 13 Nov 2010 14:55:14 +0000 (14:55 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 18 Nov 2010 11:37:10 +0000 (11:37 +0000)
(cherry picked from commit 9674a73c08e128d8a7a39a6be6140c373c0e61f0)

src/inspect.c

index e418c3c..64d9c15 100644 (file)
@@ -916,7 +916,7 @@ check_windows_registry (guestfs_h *g, struct inspect_fs *fs)
         if (fs->minor_version == -1) {
           free (key);
           free (version);
-          return -1;
+          goto out;
         }
       }