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.
REL8_1_STABLE
Neil Conway 19 years ago
parent 4e957954d6
commit cbf8f82824
  1. 3
      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.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);
}
/*

Loading…
Cancel
Save