]> wimlib.net Git - wimlib/blobdiff - src/mount_image.c
extract_resource_to_staging_dir(): Fix memory leak
[wimlib] / src / mount_image.c
index 7b3a91470d7c7c5c6b57df3412a4f49bf6dd9b52..04be3f6f73c8e3ea9b6b87de79959921ee3302b9 100644 (file)
@@ -667,6 +667,7 @@ extract_resource_to_staging_dir(struct wim_inode *inode,
                }
        }
 
                }
        }
 
+       lte_put_resource(new_lte);
        new_lte->refcnt              = inode->i_nlink;
        new_lte->resource_location   = RESOURCE_IN_STAGING_FILE;
        new_lte->staging_file_name   = staging_file_name;
        new_lte->refcnt              = inode->i_nlink;
        new_lte->resource_location   = RESOURCE_IN_STAGING_FILE;
        new_lte->staging_file_name   = staging_file_name;