From e947c4030caa71f09b42763d19dc17807e7bc2c5 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Thu, 12 Jun 2025 11:16:16 +0200 Subject: [PATCH] datasets: remove unreachable code As the DatasetGetOrCreate function is called before the creation of the hash, it will never be available so we can remove the cleaning. --- src/datasets.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/datasets.c b/src/datasets.c index c283f42e21..e0a46c7441 100644 --- a/src/datasets.c +++ b/src/datasets.c @@ -443,9 +443,6 @@ int DatasetGetOrCreate(const char *name, enum DatasetTypes type, const char *sav return 0; out_err: if (set) { - if (set->hash) { - THashShutdown(set->hash); - } SCFree(set); } return -1;