mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Use g_strfeev instead of virStringFreeList
Both accept a NULL value gracefully and virStringFreeList does not zero the pointer afterwards, so a straight replace is safe. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
@@ -124,7 +124,7 @@ virCPUarmDataClear(virCPUarmData *data)
|
||||
if (!data)
|
||||
return;
|
||||
|
||||
virStringListFree(data->features);
|
||||
g_strfreev(data->features);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
@@ -801,7 +801,7 @@ virCPUppc64DriverGetModels(char ***models)
|
||||
|
||||
error:
|
||||
if (models) {
|
||||
virStringListFree(*models);
|
||||
g_strfreev(*models);
|
||||
*models = NULL;
|
||||
}
|
||||
goto cleanup;
|
||||
|
||||
Reference in New Issue
Block a user