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.6.2~19 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=8838ba052689bd41dc2259b8ef36394199d06b20;p=libguestfs.git inspect: Fix error out path if minor_version parsing fails. (cherry picked from commit 9674a73c08e128d8a7a39a6be6140c373c0e61f0) --- diff --git a/src/inspect.c b/src/inspect.c index e418c3c..64d9c15 100644 --- a/src/inspect.c +++ b/src/inspect.c @@ -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; } }