From 43b49c0f14ead76f55eb869ebfeff08816ffd1a7 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 14 Jun 2023 14:59:54 +0200 Subject: [PATCH] resolvectl: fix double free issue Follow-up for: #28012 Addresses these: https://github.com/systemd/systemd/pull/28012#issuecomment-1590889386 --- src/resolve/resolvectl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resolve/resolvectl.c b/src/resolve/resolvectl.c index c7ec3de588d..d6ecaed3c63 100644 --- a/src/resolve/resolvectl.c +++ b/src/resolve/resolvectl.c @@ -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; -- 2.47.3