From: Lennart Poettering Date: Wed, 14 Jun 2023 12:59:54 +0000 (+0200) Subject: resolvectl: fix double free issue X-Git-Tag: v254-rc1~205 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=43b49c0f14ead76f55eb869ebfeff08816ffd1a7;p=thirdparty%2Fsystemd.git resolvectl: fix double free issue Follow-up for: #28012 Addresses these: https://github.com/systemd/systemd/pull/28012#issuecomment-1590889386 --- 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;