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 63b118a..1f3dcb3 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;
        }