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

index 7df67848e26053631ab6d8832e873b38afed3293..793132556731fe450b9fe1ce8d618ae675896422 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;
        }