Destroy case source to fix memory leak.
authorBen Pfaff <blp@gnu.org>
Sun, 7 May 2006 05:48:57 +0000 (05:48 +0000)
committerBen Pfaff <blp@gnu.org>
Sun, 7 May 2006 05:48:57 +0000 (05:48 +0000)
src/data/ChangeLog
src/data/storage-stream.c

index a6e6b00408499249b0f01b71309a85a7d208e673..f223801c51c7f680b6af932646b0c01e5832e387 100644 (file)
@@ -1,3 +1,8 @@
+Sat May  6 22:48:30 2006  Ben Pfaff  <blp@gnu.org>
+
+       * storage-stream.c (storage_source_decapsulate): Destroy case
+       source to fix memory leak.
+
 Sat May  6 22:46:47 2006  Ben Pfaff  <blp@gnu.org>
 
        * scratch-reader.c (scratch_reader_read_case): Copy into existing
index a90a8aba1122d2575b5977a0bec779a889117bfc..c3b278cd769c6091bdbe88267dd2676423fab0ca 100644 (file)
@@ -172,7 +172,7 @@ storage_source_decapsulate (struct case_source *source)
   assert (source->class == &storage_source_class);
   casefile = info->casefile;
   info->casefile = NULL;
-  destroy_storage_stream_info (info);
+  free_case_source (source);
   return casefile;
 }