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:05:48 +0000 (07:05 -0700)
xattrs.c

index 7df6784..7931325 100644 (file)
--- a/xattrs.c
+++ b/xattrs.c
@@ -766,7 +766,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;
        }