From 9674a73c08e128d8a7a39a6be6140c373c0e61f0 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. --- src/inspect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 1.8.3.1