hypervFreeInvokeParams: Don't use VIR_DISPOSE_N for freeing 'params'

The struct doesn't contain any secrets to clear before freeing and even
if it did VIR_DISPOSE_N wouldn't help as the struct contains only
pointers thus the actual memory pointing to isn't sanitized.

Just free the params array pointer and then the struct itself.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Peter Krempa 2021-02-01 12:08:13 +01:00
parent 976bdfc8e7
commit 9c9423a1e8

View File

@ -184,8 +184,8 @@ hypervFreeInvokeParams(hypervInvokeParamsListPtr params)
}
}
VIR_DISPOSE_N(params->params, params->nbAvailParams);
VIR_FREE(params);
g_free(params->params);
g_free(params);
}