From: David Tardon Date: Wed, 24 May 2023 12:27:27 +0000 (+0200) Subject: journal-upload: use mfree() X-Git-Tag: v254-rc1~393^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F27774%2Fhead;p=thirdparty%2Fsystemd.git journal-upload: use mfree() --- diff --git a/src/journal-remote/journal-upload.c b/src/journal-remote/journal-upload.c index b9b310b6644..fac90d22a21 100644 --- a/src/journal-remote/journal-upload.c +++ b/src/journal-remote/journal-upload.c @@ -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 */