Remove erroneous case_unrefs. Found by valgrind
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 18 Feb 2012 13:36:23 +0000 (14:36 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 18 Feb 2012 13:36:23 +0000 (14:36 +0100)
src/language/stats/median.c

index f16aed0a14f0b00ee76fdee702173e3691b3eaad..a894f017a708d8994f1ddd79feee31f573185c00 100644 (file)
@@ -197,7 +197,6 @@ median_execute (const struct dataset *ds,
 
          if ( var_is_value_missing (var, case_data (c, var), exclude))
            {
-             case_unref (c);
              continue;
            }
 
@@ -211,7 +210,6 @@ median_execute (const struct dataset *ds,
                  value_compare_3way (indep_val, &nst->val2, width) > 0
                   )
                {
-                 case_unref (c);
                  continue;
                }
            }