diff options
author | Neil Conway <neilc@samurai.com> | 2007-08-02 17:48:59 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2007-08-02 17:48:59 +0000 |
commit | 314a201ca6e4019893b91f8baa6576892f608534 (patch) | |
tree | 9a220d7ece2ddca7469cfecaea6465871b3b7205 | |
parent | e938544befb4b7eaecf1287d46cb39f4cda05567 (diff) |
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.
-rw-r--r-- | src/backend/utils/sort/tuplestore.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/utils/sort/tuplestore.c b/src/backend/utils/sort/tuplestore.c index eaad3c612eb..45961f10160 100644 --- a/src/backend/utils/sort/tuplestore.c +++ b/src/backend/utils/sort/tuplestore.c @@ -36,7 +36,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/sort/tuplestore.c,v 1.21 2004/12/31 22:02:53 pgsql Exp $ + * $PostgreSQL: pgsql/src/backend/utils/sort/tuplestore.c,v 1.21.4.1 2007/08/02 17:48:59 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -281,6 +281,7 @@ tuplestore_end(Tuplestorestate *state) pfree(state->memtuples[i]); pfree(state->memtuples); } + pfree(state); } /* |