From 57c23c5aaf99ac0f7ce83bd0d811fe5ebe71cd37 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sun, 28 Apr 2013 17:33:08 -0500 Subject: [PATCH] imagex_info(): Do not leak WIMStruct when file not writable --- programs/imagex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/imagex.c b/programs/imagex.c index c1f4217e..0bba3546 100644 --- a/programs/imagex.c +++ b/programs/imagex.c @@ -2077,7 +2077,7 @@ imagex_info(int argc, tchar **argv) ret = file_writable(wimfile); if (ret != 0) - return ret; + goto out; if (check) write_flags = WIMLIB_WRITE_FLAG_CHECK_INTEGRITY; -- 2.43.0