From: Richard W.M. Jones Date: Sat, 13 Nov 2010 14:55:14 +0000 (+0000) Subject: inspect: Fix error out path if minor_version parsing fails. X-Git-Tag: 1.7.6~2 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=9674a73c08e128d8a7a39a6be6140c373c0e61f0;p=libguestfs.git inspect: Fix error out path if minor_version parsing fails. --- diff --git a/src/inspect.c b/src/inspect.c index bd6d189..962fd00 100644 --- a/src/inspect.c +++ b/src/inspect.c @@ -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; } }