summaryrefslogtreecommitdiff
path: root/egg/egg-secure-memory.c
diff options
context:
space:
mode:
authorstefw <stefw@localhost>2009-04-02 03:30:07 +0000
committerstefw <stefw@localhost>2009-04-02 03:30:07 +0000
commit4af2a8dc9ee69f9c810e64888580dd44d17a6880 (patch)
tree91aa13b5fb974d65c0a072b843c4e6a76d4cddd0 /egg/egg-secure-memory.c
parentdd5f6760bb07c147239e63825ceaa97d65a4ba68 (diff)
downloadgcr-4af2a8dc9ee69f9c810e64888580dd44d17a6880.tar.gz
Fix problem where freed memory is not inserted into the unused ring properly.
This caused enless loops. Should fix bug #575247 svn path=/trunk/; revision=1708
Diffstat (limited to 'egg/egg-secure-memory.c')
-rw-r--r--egg/egg-secure-memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/egg/egg-secure-memory.c b/egg/egg-secure-memory.c
index 8e26b8d..1d2f48b 100644
--- a/egg/egg-secure-memory.c
+++ b/egg/egg-secure-memory.c
@@ -341,7 +341,7 @@ sec_insert_cell_ring (Cell **ring, Cell *cell)
/* Insert back into the mix of available memory */
if (*ring) {
cell->next = (*ring)->next;
- cell->prev = (*ring)->prev;
+ cell->prev = *ring;
cell->next->prev = cell;
cell->prev->next = cell;
} else {