projects
/
users
/
simon
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
602c66c
)
Fix a memory leak in tuplestore_end(). Unlikely to be significant during
author
Neil Conway
<neilc@samurai.com>
Thu, 2 Aug 2007 17:49:01 +0000
(17:49 +0000)
committer
Neil Conway
<neilc@samurai.com>
Thu, 2 Aug 2007 17:49:01 +0000
(17:49 +0000)
normal operation, but tuplestore_end() ought to do what it claims to do.
src/backend/utils/sort/tuplestore.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/sort/tuplestore.c
b/src/backend/utils/sort/tuplestore.c
index 01c0bc8f35339f812b6a0f5e2c42869c88b42951..670ea2e618e61ecc54fb7901671326fecd62b204 100644
(file)
--- a/
src/backend/utils/sort/tuplestore.c
+++ b/
src/backend/utils/sort/tuplestore.c
@@
-322,6
+322,7
@@
tuplestore_end(Tuplestorestate *state)
pfree(state->memtuples[i]);
pfree(state->memtuples);
}
+ pfree(state);
}
/*