From 30d3f8c199d38d830ff340e521b862d8fe4395b6 Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Mon, 10 Oct 2011 12:02:33 +0200 Subject: [PATCH] utils: Initialize list head after freeing translation list Problem found and fix proposed by Andrew Kraslavsky --- lib/utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/utils.c b/lib/utils.c index 37ad4cc..0ec7626 100644 --- a/lib/utils.c +++ b/lib/utils.c @@ -885,6 +885,8 @@ void __trans_list_clear(struct nl_list_head *head) free(tl->a); free(tl); } + + nl_init_list_head(head); } char *__type2str(int type, char *buf, size_t len,