From: Eric Biggers Date: Sun, 28 Apr 2013 22:33:08 +0000 (-0500) Subject: imagex_info(): Do not leak WIMStruct when file not writable X-Git-Tag: v1.3.3~1 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=57c23c5aaf99ac0f7ce83bd0d811fe5ebe71cd37;ds=sidebyside imagex_info(): Do not leak WIMStruct when file not writable --- 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;