From: Wayne Davison Date: Sat, 19 Jan 2013 18:20:49 +0000 (-0800) Subject: Free ACL/xattr info in try_dests_reg() loop. X-Git-Tag: v3.1.0pre1~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd7d36cc6c85b821a772b54377654d3a3d1535f4;p=thirdparty%2Frsync.git Free ACL/xattr info in try_dests_reg() loop. --- diff --git a/generator.c b/generator.c index b89c1459..25435af7 100644 --- a/generator.c +++ b/generator.c @@ -873,8 +873,10 @@ static int try_dests_reg(struct file_struct *file, char *fname, int ndx, match_level = 2; /* FALL THROUGH */ case 2: - if (!unchanged_attrs(cmpbuf, file, sxp)) + if (!unchanged_attrs(cmpbuf, file, sxp)) { + free_stat_x(sxp); continue; + } best_match = j; match_level = 3; break;