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.
pull/13483/head
Eric Leblond 10 months ago committed by Victor Julien
parent 9f83662f20
commit e947c4030c

@ -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;

Loading…
Cancel
Save