diff options
author | Neil Conway <neilc@samurai.com> | 2007-08-02 17:48:52 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2007-08-02 17:48:52 +0000 |
commit | 494d6f809eb66cf2333f0872f2f02de16c6dcedd (patch) | |
tree | 356174a56d325b106cbe5e1461d367e634942f41 /src | |
parent | c441e26ee8022862b3c3906609e5a386696d2d3b (diff) | |
download | postgresql-494d6f809eb66cf2333f0872f2f02de16c6dcedd.tar.gz postgresql-494d6f809eb66cf2333f0872f2f02de16c6dcedd.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.
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 5fb7af13167..372dacaed46 100644 --- a/src/backend/utils/sort/tuplestore.c +++ b/src/backend/utils/sort/tuplestore.c @@ -38,7 +38,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/sort/tuplestore.c,v 1.33 2007/06/07 19:19:57 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/utils/sort/tuplestore.c,v 1.34 2007/08/02 17:48:52 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -322,6 +322,7 @@ tuplestore_end(Tuplestorestate *state) pfree(state->memtuples[i]); pfree(state->memtuples); } + pfree(state); } /* |