resolvectl: fix double free issue

Follow-up for: #28012

Addresses these: https://github.com/systemd/systemd/pull/28012#issuecomment-1590889386
This commit is contained in:
Lennart Poettering
2023-06-14 14:59:54 +02:00
parent c4ccb80e39
commit 43b49c0f14

View File

@@ -2894,7 +2894,7 @@ static int dump_cache_scope(JsonVariant *scope) {
}
static int verb_show_cache(int argc, char *argv[], void *userdata) {
_cleanup_(json_variant_unrefp) JsonVariant *d = NULL, *reply = NULL;
JsonVariant *reply = NULL, *d = NULL;
_cleanup_(varlink_unrefp) Varlink *vl = NULL;
int r;