]> wimlib.net Git - wimlib/blobdiff - src/extract.c
extract.c: Fix dereference of NULL in memory exhausted path
[wimlib] / src / extract.c
index 40e3296484a18fcbef0d0e624bfcd6117d8f24e0..fb96f13f8723bf26d0e24f9acfd4e9d051bb22c6 100644 (file)
@@ -269,7 +269,7 @@ load_streams_from_pipe(struct apply_ctx *ctx,
        }
        ret = 0;
 out:
-       if (found_lte->resource_location != RESOURCE_IN_WIM)
+       if (found_lte && found_lte->resource_location != RESOURCE_IN_WIM)
                FREE(rspec);
        free_lookup_table_entry(found_lte);
        return ret;