]> wimlib.net Git - wimlib/blobdiff - src/extract.c
extract_trees(): Correctly destroy stream list in error path
[wimlib] / src / extract.c
index 98ccccad5221f974e0fbdaf0912cca29fe2b012f..9cbac117f54438d25372c90cb43dd4df4c327bb5 100644 (file)
@@ -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