[PATCH] lib: fwts_alloc: clear hash table at end of garbage collection
Colin King
colin.king at canonical.com
Sat Feb 25 13:48:17 UTC 2017
From: Colin Ian King <colin.king at canonical.com>
We need to ensure the table is clear once we've free'd all the
hash entries from the table.
Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
src/lib/src/fwts_alloc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/lib/src/fwts_alloc.c b/src/lib/src/fwts_alloc.c
index 0e6122d..f07cab8 100644
--- a/src/lib/src/fwts_alloc.c
+++ b/src/lib/src/fwts_alloc.c
@@ -137,6 +137,7 @@ static void hash_alloc_garbage_collect(void)
ha = next;
}
}
+ memset(hash_allocs, 0, sizeof(hash_allocs));
}
/*
--
2.10.2
More information about the fwts-devel
mailing list