Re: [lxc-devel] [PATCH] Fix use of list item memory after free

2012-11-26 Thread Dwight Engen
On Mon, 26 Nov 2012 11:40:40 -0600 Serge Hallyn wrote: > Quoting Dwight Engen (dwight.en...@oracle.com): > > Valgrind showed use of ->next field after item has been free()ed. > > Introduce a lxc_list_for_each_safe() which allows traversal of a > > list when the body of the loop may remove the cur

Re: [lxc-devel] [PATCH] Fix use of list item memory after free

2012-11-26 Thread Stéphane Graber
On 11/26/2012 12:40 PM, Serge Hallyn wrote: > Quoting Dwight Engen (dwight.en...@oracle.com): >> Valgrind showed use of ->next field after item has been free()ed. >> Introduce a lxc_list_for_each_safe() which allows traversal of a list >> when the body of the loop may remove the currently iterated

Re: [lxc-devel] [PATCH] Fix use of list item memory after free

2012-11-26 Thread Serge Hallyn
Quoting Dwight Engen (dwight.en...@oracle.com): > Valgrind showed use of ->next field after item has been free()ed. > Introduce a lxc_list_for_each_safe() which allows traversal of a list > when the body of the loop may remove the currently iterated item. > > Signed-off-by: Dwight Engen Thanks (