mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
logs-show: use json_variant_unref_many() where appropriate
This commit is contained in:
parent
fcd172b123
commit
8ba814df25
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user