]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journal-upload: use mfree() 27774/head
authorDavid Tardon <dtardon@redhat.com>
Wed, 24 May 2023 12:27:27 +0000 (14:27 +0200)
committerDavid Tardon <dtardon@redhat.com>
Wed, 24 May 2023 13:04:22 +0000 (15:04 +0200)
src/journal-remote/journal-upload.c

index b9b310b6644aa2af2b51eb87a8d9e61ae3612840..fac90d22a21b1944fe18b3824ca4eebb7dd8238e 100644 (file)
@@ -271,8 +271,7 @@ int start_upload(Uploader *u,
                 /* truncate the potential old error message */
                 u->error[0] = '\0';
 
-                free(u->answer);
-                u->answer = 0;
+                u->answer = mfree(u->answer);
         }
 
         /* upload to this place */