From: Baptiste Daroussin Date: Wed, 3 Nov 2021 08:12:14 +0000 (+0100) Subject: send_digest: directly dprint instead of allocating a temporary string X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3962b078a7147cf1f36d8db52f65bd479bb6b4e2;p=thirdparty%2Fmlmmj.git send_digest: directly dprint instead of allocating a temporary string --- diff --git a/src/send_digest.c b/src/send_digest.c index 5567d224..8e8d8667 100644 --- a/src/send_digest.c +++ b/src/send_digest.c @@ -470,8 +470,7 @@ errdighdrs: close(archivefd); } - tmp = concatstr(3, "\n--", boundary, "--\n"); - if (dprintf(fd, "%s", tmp) == -1) { + if (dprintf(fd, "\n--%s--\n", boundary) == -1) { log_error(LOG_ARGS, "Could not write digest end to '%s'", queuename); close(fd); @@ -483,7 +482,6 @@ errdighdrs: close(fd); myfree(boundary); - myfree(tmp); childpid = fork();