From e10a0fd1f906c342b0b45bc393ec10043c6a8936 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 18 Jan 2014 13:18:44 -0600 Subject: [PATCH] extract_trees(): Correctly destroy stream list in error path --- src/extract.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extract.c b/src/extract.c index 98ccccad..9cbac117 100644 --- a/src/extract.c +++ b/src/extract.c @@ -2509,7 +2509,7 @@ extract_trees(WIMStruct *wim, struct wim_dentry **trees, size_t num_trees, INIT_LIST_HEAD(&ctx.stream_list); ret = dentry_list_ref_streams(&dentry_list, &ctx); if (ret) - goto out_finish_or_abort_extract; + goto out_destroy_stream_list; if (extract_flags & WIMLIB_EXTRACT_FLAG_FROM_PIPE) { /* When extracting from a pipe, the number of bytes of data to -- 2.43.0