dataset: Fix memory leak.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 7 May 2011 16:37:00 +0000 (09:37 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 7 May 2011 16:37:00 +0000 (09:37 -0700)
Reported by John Darrington.

src/data/dataset.c

index 10009f4a5cc463e215a0373547cb19b6cadc8ce2..26c3a49244783f4ff84a734d8c024d8470a2b6d0 100644 (file)
@@ -203,6 +203,7 @@ dataset_destroy (struct dataset *ds)
       caseinit_destroy (ds->caseinit);
       trns_chain_destroy (ds->permanent_trns_chain);
       dataset_transformations_changed__ (ds, false);
+      free (ds->name);
       free (ds);
     }
 }