]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
send_digest: fix double free and remove unused variable
authorBaptiste Daroussin <bapt@FreeBSD.org>
Tue, 20 Jun 2023 08:04:44 +0000 (10:04 +0200)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Tue, 20 Jun 2023 08:04:44 +0000 (10:04 +0200)
src/send_digest.c

index fe13aff352904c373dde60178c9459e4f00b18f1..a66b97b8728843a5c15aa85f7ca5a526cc1f98aa 100644 (file)
@@ -87,7 +87,7 @@ static void rewind_thread_list(void * state)
 {
        thread_list_state *s = (thread_list_state *)state;
        FILE *archivef;
-       int i, j, archivefd, thread_idx;
+       int i, j, thread_idx;
        char *line = NULL, *tmp, *subj, *from, *tmpfrom;
        size_t linecap = 0;
        char *archivename;
@@ -451,7 +451,6 @@ errdighdrs:
                        close(archivefd);
                        unlink(queuename);
                        free(boundary);
-                       free(tmp);
                        free(queuename);
                        return -1;
                }