Coverity issue: 362796, 362804, 362819, 362836, 362858, 362865, 362869
Fixes:
3ca60ceed7 ("pipeline: add SWX pipeline specification file")
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
static void
extobj_spec_free(struct extobj_spec *s)
{
+ if (!s)
+ return;
+
free(s->name);
+ s->name = NULL;
+
free(s->extern_type_name);
+ s->extern_type_name = NULL;
+
free(s->pragma);
+ s->pragma = NULL;
}
static int
static void
header_spec_free(struct header_spec *s)
{
+ if (!s)
+ return;
+
free(s->name);
+ s->name = NULL;
+
free(s->struct_type_name);
+ s->struct_type_name = NULL;
}
static int
static void
metadata_spec_free(struct metadata_spec *s)
{
+ if (!s)
+ return;
+
free(s->struct_type_name);
+ s->struct_type_name = NULL;
}
static int