projects
/
slony1-engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1c762f
)
logApply trigger free()s data from wrong cache entry on evict.
author
Jan Wieck
<JanWieck@Yahoo.com>
Wed, 29 Jan 2014 17:11:57 +0000
(12:11 -0500)
committer
Jan Wieck
<JanWieck@Yahoo.com>
Thu, 6 Feb 2014 17:18:21 +0000
(12:18 -0500)
src/backend/slony1_funcs.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/slony1_funcs.c
b/src/backend/slony1_funcs.c
index 506b6f90ec5d3b64fd294c5d437e972f5ba6a3c5..933cbe480c807b9e5211cd6df38c985773b7bfbf 100644
(file)
--- a/
src/backend/slony1_funcs.c
+++ b/
src/backend/slony1_funcs.c
@@
-1782,10
+1782,13
@@
versionFunc(logApply)(PG_FUNCTION_ARGS)
SPI_freeplan(evict->plan);
oldContext = MemoryContextSwitchTo(applyCacheContext);
- pfree(
cacheEn
t->finfo_input);
- pfree(
cacheEn
t->typioparam);
- pfree(
cacheEn
t->typmod);
+ pfree(
evic
t->finfo_input);
+ pfree(
evic
t->typioparam);
+ pfree(
evic
t->typmod);
MemoryContextSwitchTo(oldContext);
+ evict->finfo_input = NULL;
+ evict->typioparam = NULL;
+ evict->typmod = NULL;
evict->plan = NULL;
#ifdef APPLY_CACHE_VERIFY
evict->evicted = 1;