diff options
| author | Neil Conway | 2007-08-02 17:49:01 +0000 |
|---|---|---|
| committer | Neil Conway | 2007-08-02 17:49:01 +0000 |
| commit | 3ca3c71141e8259810c6f46fd04892463dadffe9 (patch) | |
| tree | 3833f2043cc517b7c88e1a23425490ec723ed0cf | |
| parent | c14066aa7049bac14cadc18d0c48bcf6ea81ff52 (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 43687568d4..6ad088db9a 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 - * $Header: /cvsroot/pgsql/src/backend/utils/sort/tuplestore.c,v 1.16 2003/08/04 02:40:09 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/sort/tuplestore.c,v 1.16.4.1 2007/08/02 17:49:01 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -284,6 +284,7 @@ tuplestore_end(Tuplestorestate *state) pfree(state->memtuples[i]); pfree(state->memtuples); } + pfree(state); } /* |
