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>
Sat, 13 Nov 2010 14:55:14 +0000 (14:55 +0000)
src/inspect.c

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