diff options
author | Neil Conway <neilc@samurai.com> | 2007-08-02 17:48:54 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2007-08-02 17:48:54 +0000 |
commit | 2bd26c516666b5538a67627d65fc590a6476b044 (patch) | |
tree | da4403a4265b12b261ea20c85e818458581f3de9 | |
parent | 1be62b532b441aaff4b2d9c9dc028b96c4b7a8c7 (diff) | |
download | postgresql-2bd26c516666b5538a67627d65fc590a6476b044.tar.gz postgresql-2bd26c516666b5538a67627d65fc590a6476b044.zip |
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 dcf68de335d..ccc6580c1c7 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.29 2006/10/04 00:30:04 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/utils/sort/tuplestore.c,v 1.29.2.1 2007/08/02 17:48:54 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -284,6 +284,7 @@ tuplestore_end(Tuplestorestate *state) pfree(state->memtuples[i]); pfree(state->memtuples); } + pfree(state); } /* |