From: Neil Conway Date: Thu, 2 Aug 2007 17:49:01 +0000 (+0000) Subject: Fix a memory leak in tuplestore_end(). Unlikely to be significant during X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=88e134766fe501b72a2cbed8aa0333638ddf48f4;p=users%2Fbernd%2Fpostgres.git Fix a memory leak in tuplestore_end(). Unlikely to be significant during normal operation, but tuplestore_end() ought to do what it claims to do. --- diff --git a/src/backend/utils/sort/tuplestore.c b/src/backend/utils/sort/tuplestore.c index 4b064b6e29..794390a7aa 100644 --- a/src/backend/utils/sort/tuplestore.c +++ b/src/backend/utils/sort/tuplestore.c @@ -284,6 +284,7 @@ tuplestore_end(Tuplestorestate *state) pfree(state->memtuples[i]); pfree(state->memtuples); } + pfree(state); } /*