From: Ben Pfaff Date: Sun, 7 May 2006 05:50:07 +0000 (+0000) Subject: Destroy chain's trns member, to fix memory leak. X-Git-Tag: v0.6.0~876 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d1348cd3e1f9dbf631ce9f67f2748eaa216dc45;p=pspp-builds.git Destroy chain's trns member, to fix memory leak. --- diff --git a/src/data/ChangeLog b/src/data/ChangeLog index f223801c..16e55fe7 100644 --- a/src/data/ChangeLog +++ b/src/data/ChangeLog @@ -1,3 +1,8 @@ +Sat May 6 22:49:43 2006 Ben Pfaff + + * transformations.c (trns_chain_destroy): Destroy chain's trns + member, to fix memory leak. + Sat May 6 22:48:30 2006 Ben Pfaff * storage-stream.c (storage_source_decapsulate): Destroy case diff --git a/src/data/transformations.c b/src/data/transformations.c index 675e1c91..51fddb19 100644 --- a/src/data/transformations.c +++ b/src/data/transformations.c @@ -105,6 +105,7 @@ trns_chain_destroy (struct trns_chain *chain) if (trns->free != NULL) ok = trns->free (trns->aux) && ok; } + free (chain->trns); free (chain); }