From 084039079380f71fd330ba0fed5a58548ddf0587 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Tue, 1 Jan 2013 00:07:12 -0600 Subject: [PATCH] imagex_export(): Fix memory leak on error path --- programs/imagex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.0