]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Fix a bogus free in uncache_tmp_xattrs().
authorWayne Davison <wayned@samba.org>
Fri, 14 Aug 2009 14:04:24 +0000 (07:04 -0700)
committerWayne Davison <wayned@samba.org>
Fri, 14 Aug 2009 14:04:24 +0000 (07:04 -0700)
xattrs.c

index 63b118a7a58dd67dc85ff3597a2996fafa5b7e76..1f3dcb366f271e9f233244d53693caa0b9f7f43b 100644 (file)
--- a/xattrs.c
+++ b/xattrs.c
@@ -751,7 +751,7 @@ void uncache_tmp_xattrs(void)
                rsync_xal_l.count = prior_xattr_count;
                while (xattr_item-- > xattr_start) {
                        rsync_xal_free(xattr_item);
-                       free(xattr_item);
+                       free(xattr_item->items);
                }
                prior_xattr_count = (size_t)-1;
        }