From: Eric Biggers Date: Sat, 18 Jan 2014 19:18:44 +0000 (-0600) Subject: extract_trees(): Correctly destroy stream list in error path X-Git-Tag: v1.6.1~1 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=e10a0fd1f906c342b0b45bc393ec10043c6a8936 extract_trees(): Correctly destroy stream list in error path --- 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