1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-26 18:17:33 +03:00

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.
This commit is contained in:
Neil Conway 2007-08-02 17:48:57 +00:00
parent 4e957954d6
commit cbf8f82824

View File

@ -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);
}
/*