There are a few places where a variable is VIR_FREE()-d and then
explicitly set to NULL. This is not necessary since VIR_FREE()
does that for us.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
if (xmlopt && xmlopt->privateData.graphicsNew &&
!(def->privateData = xmlopt->privateData.graphicsNew())) {
VIR_FREE(def);
- def = NULL;
}
return def;
if (match && STREQ(match, "no"))
match_flag = NWFILTER_ENTRY_ITEM_FLAG_IS_NEG;
VIR_FREE(match);
- match = NULL;
while (att[idx].name != NULL) {
prop = virXMLPropString(node, att[idx].name);
goto cleanup;
}
VIR_FREE(filtered);
- filtered = NULL;
nfiltered = virTypedParamsFilter(params, G_N_ELEMENTS(params),
"bar", &filtered);