git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c441e26)
Fix a memory leak in tuplestore_end(). Unlikely to be significant during
Thu, 2 Aug 2007 17:48:52 +0000 (17:48 +0000)
Thu, 2 Aug 2007 17:48:52 +0000 (17:48 +0000)
normal operation, but tuplestore_end() ought to do what it claims to do.


diff --git a/src/backend/utils/sort/tuplestore.c b/src/backend/utils/sort/tuplestore.c
index 5fb7af13167fdcf64c400de16add281895f71766..372dacaed46c290dc9248f612162cada8cb1dd6c 100644 (file)
--- a/src/backend/utils/sort/tuplestore.c
+++ b/src/backend/utils/sort/tuplestore.c
@@ -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);
}
/*
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /