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:
parent
c14066aa70
commit
3ca3c71141
@ -36,7 +36,7 @@
|
|||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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[i]);
|
||||||
pfree(state->memtuples);
|
pfree(state->memtuples);
|
||||||
}
|
}
|
||||||
|
pfree(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user