mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
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:
parent
976bdfc8e7
commit
9c9423a1e8
@ -184,8 +184,8 @@ hypervFreeInvokeParams(hypervInvokeParamsListPtr params)
|
||||
}
|
||||
}
|
||||
|
||||
VIR_DISPOSE_N(params->params, params->nbAvailParams);
|
||||
VIR_FREE(params);
|
||||
g_free(params->params);
|
||||
g_free(params);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user