From: John Darrington Date: Wed, 2 Jun 2010 08:32:38 +0000 (+0200) Subject: Fix memory leak in casewriter_make_reader. X-Git-Tag: v0.7.6~385 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38392cc06e46cbb27b879a2d70a3fde3246939cd;p=pspp-builds.git Fix memory leak in casewriter_make_reader. The proto member was not being unrefed when it should have been. Reviewed by Ben Pfaff. --- diff --git a/src/data/casewriter.c b/src/data/casewriter.c index f7760eca..7631d776 100644 --- a/src/data/casewriter.c +++ b/src/data/casewriter.c @@ -99,6 +99,8 @@ casewriter_make_reader (struct casewriter *writer) { struct casereader *reader = writer->class->convert_to_reader (writer, writer->aux); taint_propagate (writer->taint, casereader_get_taint (reader)); + + caseproto_unref (writer->proto); taint_destroy (writer->taint); free (writer); return reader;