Free ACL/xattr info in try_dests_reg() loop.
authorWayne Davison <wayned@samba.org>
Sat, 19 Jan 2013 18:20:49 +0000 (10:20 -0800)
committerWayne Davison <wayned@samba.org>
Sat, 19 Jan 2013 18:25:18 +0000 (10:25 -0800)
generator.c

index b89c14598955382596dd465c3c572caf8d820245..25435af722d80170bd6aec39f3552a04a685c26d 100644 (file)
@@ -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;