From 8838ba052689bd41dc2259b8ef36394199d06b20 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 13 Nov 2010 14:55:14 +0000 Subject: [PATCH] inspect: Fix error out path if minor_version parsing fails. (cherry picked from commit 9674a73c08e128d8a7a39a6be6140c373c0e61f0) --- src/inspect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 1.8.3.1