Fix memory leak in AGGREGATE command
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 29 Jul 2012 12:49:32 +0000 (14:49 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 29 Jul 2012 12:49:32 +0000 (14:49 +0200)
src/language/stats/aggregate.c

index f4cbaac448b3acfbd67fa81c8775176fbb6b33e0..ff6c1fb59e8434a9ae475186a6d48d3e11369587 100644 (file)
@@ -332,8 +332,8 @@ cmd_aggregate (struct lexer *lexer, struct dataset *ds)
       else
        {
          dump_aggregate_info (&agr, output, c);
-         case_unref (c);
        }
+      case_unref (c);
     }
   if (!casegrouper_destroy (grouper))
     goto error;