Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit494d6f8

Browse files
author
Neil Conway
committed
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.
1 parentc441e26 commit494d6f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/backend/utils/sort/tuplestore.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* Portions Copyright (c) 1994, Regents of the University of California
3939
*
4040
* IDENTIFICATION
41-
* $PostgreSQL: pgsql/src/backend/utils/sort/tuplestore.c,v 1.33 2007/06/07 19:19:57 tgl Exp $
41+
* $PostgreSQL: pgsql/src/backend/utils/sort/tuplestore.c,v 1.34 2007/08/02 17:48:52 neilc Exp $
4242
*
4343
*-------------------------------------------------------------------------
4444
*/
@@ -322,6 +322,7 @@ tuplestore_end(Tuplestorestate *state)
322322
pfree(state->memtuples[i]);
323323
pfree(state->memtuples);
324324
}
325+
pfree(state);
325326
}
326327

327328
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp