gnome-keyring r1708 - in trunk: . egg



Author: stefw
Date: Thu Apr  2 03:30:07 2009
New Revision: 1708
URL: http://svn.gnome.org/viewvc/gnome-keyring?rev=1708&view=rev

Log:
Fix problem where freed memory is not inserted into the unused ring properly.

This caused enless loops. Should fix bug #575247

Modified:
   trunk/ChangeLog
   trunk/egg/egg-secure-memory.c

Modified: trunk/egg/egg-secure-memory.c
==============================================================================
--- trunk/egg/egg-secure-memory.c	(original)
+++ trunk/egg/egg-secure-memory.c	Thu Apr  2 03:30:07 2009
@@ -341,7 +341,7 @@
 	/* 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 {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]