From: Ben Pfaff Date: Sat, 7 May 2011 16:37:00 +0000 (-0700) Subject: dataset: Fix memory leak. X-Git-Tag: v0.7.9~317 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89661039e64c2bda951d2309daafc47e92f60cea;p=pspp-builds.git dataset: Fix memory leak. Reported by John Darrington. --- diff --git a/src/data/dataset.c b/src/data/dataset.c index 10009f4a..26c3a492 100644 --- a/src/data/dataset.c +++ b/src/data/dataset.c @@ -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); } }