From 3b4126ff2af9161de3a3b262acd6655211b0082a Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sun, 7 May 2006 05:48:57 +0000 Subject: [PATCH] Destroy case source to fix memory leak. --- src/data/ChangeLog | 5 +++++ src/data/storage-stream.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/data/ChangeLog b/src/data/ChangeLog index a6e6b004..f223801c 100644 --- a/src/data/ChangeLog +++ b/src/data/ChangeLog @@ -1,3 +1,8 @@ +Sat May 6 22:48:30 2006 Ben Pfaff + + * storage-stream.c (storage_source_decapsulate): Destroy case + source to fix memory leak. + Sat May 6 22:46:47 2006 Ben Pfaff * scratch-reader.c (scratch_reader_read_case): Copy into existing diff --git a/src/data/storage-stream.c b/src/data/storage-stream.c index a90a8aba..c3b278cd 100644 --- a/src/data/storage-stream.c +++ b/src/data/storage-stream.c @@ -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; } -- 2.30.2