From: Ben Pfaff Date: Sun, 7 May 2006 05:48:57 +0000 (+0000) Subject: Destroy case source to fix memory leak. X-Git-Tag: v0.6.0~877 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b4126ff2af9161de3a3b262acd6655211b0082a;p=pspp-builds.git Destroy case source to fix memory leak. --- 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; }