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:
Ján Tomko
2020-08-02 19:36:03 +02:00
parent 201dcc1690
commit ee247e1d3f
52 changed files with 145 additions and 145 deletions

View File

@@ -124,7 +124,7 @@ virCPUarmDataClear(virCPUarmData *data)
if (!data)
return;
virStringListFree(data->features);
g_strfreev(data->features);
}
static void

View File

@@ -801,7 +801,7 @@ virCPUppc64DriverGetModels(char ***models)
error:
if (models) {
virStringListFree(*models);
g_strfreev(*models);
*models = NULL;
}
goto cleanup;