Commit 494d6f80 authored by Neil Conway's avatar Neil Conway

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.
parent c441e26e
......@@ -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);
}
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment