Destroy chain's trns member, to fix memory leak.
authorBen Pfaff <blp@gnu.org>
Sun, 7 May 2006 05:50:07 +0000 (05:50 +0000)
committerBen Pfaff <blp@gnu.org>
Sun, 7 May 2006 05:50:07 +0000 (05:50 +0000)
src/data/ChangeLog
src/data/transformations.c

index f223801c51c7f680b6af932646b0c01e5832e387..16e55fe7780c20d628dd6c437f6c52e63c55f3f1 100644 (file)
@@ -1,3 +1,8 @@
+Sat May  6 22:49:43 2006  Ben Pfaff  <blp@gnu.org>
+
+       * transformations.c (trns_chain_destroy): Destroy chain's trns
+       member, to fix memory leak.
+
 Sat May  6 22:48:30 2006  Ben Pfaff  <blp@gnu.org>
 
        * storage-stream.c (storage_source_decapsulate): Destroy case
index 675e1c91d95b682b87acb05a3d477125398e88d5..51fddb197e2fa2fe4642c99b8bc15730f247847e 100644 (file)
@@ -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);
     }