summaryrefslogtreecommitdiffstats
path: root/src/journal-remote/journal-upload.c
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2023-05-24 14:27:27 +0200
committerDavid Tardon <dtardon@redhat.com>2023-05-24 15:04:22 +0200
commit5bcd12cae01ac625ab240dbe106bb83d25965640 (patch)
treea561c4eb40d06cd19bb00e029674685012284b52 /src/journal-remote/journal-upload.c
parenttree-wide: use free_and_str*dup() more (diff)
downloadsystemd-5bcd12cae01ac625ab240dbe106bb83d25965640.tar.xz
systemd-5bcd12cae01ac625ab240dbe106bb83d25965640.zip
journal-upload: use mfree()
Diffstat (limited to 'src/journal-remote/journal-upload.c')
-rw-r--r--src/journal-remote/journal-upload.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/journal-remote/journal-upload.c b/src/journal-remote/journal-upload.c
index b9b310b664..fac90d22a2 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 */