]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolvectl: fix double free issue
authorLennart Poettering <lennart@poettering.net>
Wed, 14 Jun 2023 12:59:54 +0000 (14:59 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 14 Jun 2023 16:31:32 +0000 (18:31 +0200)
Follow-up for: #28012

Addresses these: https://github.com/systemd/systemd/pull/28012#issuecomment-1590889386

src/resolve/resolvectl.c

index c7ec3de588d1c83883ff51746e2098a698a8a633..d6ecaed3c63202874d1a901f63a30613686f8ae5 100644 (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;