]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
datasets: remove unreachable code
authorEric Leblond <el@stamus-networks.com>
Thu, 12 Jun 2025 09:16:16 +0000 (11:16 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 18 Jun 2025 16:22:59 +0000 (18:22 +0200)
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

index c283f42e214f4617b0d7d67dda4e2588710d0596..e0a46c7441944c04ba374c73d50ae438d71ed9f1 100644 (file)
@@ -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;