diff options
author | Neil Conway <neilc@samurai.com> | 2007-08-02 17:48:57 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2007-08-02 17:48:57 +0000 |
commit | cbf8f8282478b5d53bbe36977dea3f1dcf24ca42 (patch) | |
tree | 4975cff6ec5cf555ff7b858e73be45b7d40a6fb5 /src | |
parent | 4e957954d6d14967db69d4e08f5fcc6d82d1f9fe (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.
Diffstat (limited to 'src')
-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 3980bfca8fb..fd283e4959d 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.23.2.1 2005/11/22 18:23:25 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/utils/sort/tuplestore.c,v 1.23.2.2 2007/08/02 17:48:57 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -283,6 +283,7 @@ tuplestore_end(Tuplestorestate *state) pfree(state->memtuples[i]); pfree(state->memtuples); } + pfree(state); } /* |