1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

logs-show: use json_variant_unref_many() where appropriate

This commit is contained in:
Lennart Poettering 2023-01-19 22:44:11 +01:00
parent fcd172b123
commit 8ba814df25

View File

@ -1130,12 +1130,8 @@ static int output_json(
finish: finish:
while ((d = hashmap_steal_first(h))) { while ((d = hashmap_steal_first(h))) {
size_t k;
json_variant_unref(d->name); json_variant_unref(d->name);
for (k = 0; k < d->n_values; k++) json_variant_unref_many(d->values, d->n_values);
json_variant_unref(d->values[k]);
free(d); free(d);
} }