datatype_set() already deals with this case, remove this.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
void inet_service_type_print(const struct expr *expr, struct output_ctx *octx);
extern const struct datatype *concat_type_alloc(uint32_t type);
-extern void concat_type_destroy(const struct datatype *dtype);
static inline uint32_t concat_subtype_add(uint32_t type, uint32_t subtype)
{
return dtype;
}
-void concat_type_destroy(const struct datatype *dtype)
-{
- datatype_free(dtype);
-}
-
const struct datatype *set_datatype_alloc(const struct datatype *orig_dtype,
unsigned int byteorder)
{
return;
datatype_set(key, set_datatype_alloc(dtype, key->byteorder));
- if (dtype->flags & DTYPE_F_ALLOC)
- concat_type_destroy(dtype);
}
static struct expr *implicit_set_declaration(struct eval_ctx *ctx,