diff --git a/criu/proc_parse.c b/criu/proc_parse.c index 24a915498..4522ce67e 100644 --- a/criu/proc_parse.c +++ b/criu/proc_parse.c @@ -2302,6 +2302,7 @@ void put_ctls(struct list_head *l) xfree(c->path); xfree(c); } + INIT_LIST_HEAD(l); } /* Parse and create all the real controllers. This does not include things with