Fix memory leak in casegrouper. Closes bug #30764
authorJohn Darrington <john@darrington.wattle.id.au>
Thu, 30 Sep 2010 19:49:34 +0000 (21:49 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Thu, 30 Sep 2010 19:49:34 +0000 (21:49 +0200)
src/data/casegrouper.c

index 9e7ab157e1921057ba8aed5a720658df74677067..8d0b081280f0e6a312b4c58c717b1bf3cbbad171 100644 (file)
@@ -100,6 +100,7 @@ casegrouper_get_next_group (struct casegrouper *grouper,
           case_unref (casereader_read (grouper->reader));
           casewriter_write (writer, tmp);
         }
+      case_unref (tmp);
       case_unref (group_case);
 
       *reader = casewriter_make_reader (writer);