summaryrefslogtreecommitdiff
path: root/oui.c
diff options
context:
space:
mode:
Diffstat (limited to 'oui.c')
-rw-r--r--oui.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/oui.c b/oui.c
index 2ef8dff..94b6ba1 100644
--- a/oui.c
+++ b/oui.c
@@ -109,6 +109,9 @@ static int dissector_cleanup_oui_hash(void *ptr)
void dissector_cleanup_oui(void)
{
+ if (!initialized)
+ return;
+
for_each_hash(&oui, dissector_cleanup_oui_hash);
free_hash(&oui);
initialized = false;