From: Eric Biggers Date: Tue, 1 Jan 2013 06:07:12 +0000 (-0600) Subject: imagex_export(): Fix memory leak on error path X-Git-Tag: v1.2.3~4 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=084039079380f71fd330ba0fed5a58548ddf0587;hp=a911e31d082f3f6a2ca6e8e56df9bf5c2638cbb7 imagex_export(): Fix memory leak on error path --- diff --git a/programs/imagex.c b/programs/imagex.c index 30c2e3e8..30ffd374 100644 --- a/programs/imagex.c +++ b/programs/imagex.c @@ -1011,7 +1011,7 @@ static int imagex_export(int argc, const char **argv) ret = file_writable(dest_wimfile); if (ret != 0) - return ret; + goto out; dest_ctype = wimlib_get_compression_type(dest_w); if (compression_type_specified