From: Eric Biggers Date: Fri, 22 Mar 2013 04:15:11 +0000 (-0500) Subject: inode_add_ads_with_data(): Rename label X-Git-Tag: v1.3.1~7 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=91171817127cbce936ec3d0e9bde30b0094217b5;hp=9d5bfaf96429c37235c2cbc9e71f3ab8b2bb46ba inode_add_ads_with_data(): Rename label --- diff --git a/src/dentry.c b/src/dentry.c index f46e628c..287551b9 100644 --- a/src/dentry.c +++ b/src/dentry.c @@ -1000,25 +1000,24 @@ inode_add_ads_with_data(struct wim_inode *inode, const mbchar *name, u8 *value_copy; lte = new_lookup_table_entry(); if (!lte) - goto out_free_ads_entry; + goto out_remove_ads_entry; value_copy = MALLOC(size); if (!value_copy) { FREE(lte); - goto out_free_ads_entry; + goto out_remove_ads_entry; } memcpy(value_copy, value, size); lte->resource_location = RESOURCE_IN_ATTACHED_BUFFER; lte->attached_buffer = value_copy; lte->resource_entry.original_size = size; lte->resource_entry.size = size; - lte->resource_entry.flags = 0; copy_hash(lte->hash, value_hash); lookup_table_insert(lookup_table, lte); } new_ads_entry->lte = lte; ret = 0; goto out; -out_free_ads_entry: +out_remove_ads_entry: inode_remove_ads(inode, new_ads_entry - inode->i_ads_entries, lookup_table); out: