Memleak: CtdlMakeMessage(): don't forget about the original author.
authorWilfried Goesgens <dothebart@citadel.org>
Mon, 15 Nov 2010 11:46:17 +0000 (12:46 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Tue, 16 Nov 2010 21:45:43 +0000 (22:45 +0100)
citadel/msgbase.c

index be2096d1d6b319f089d78b8fe5f536f1b6db8528..f3b7f2dd8d94fa09c8908567bb650499ded2f2a7 100644 (file)
@@ -3474,6 +3474,7 @@ struct CtdlMessage *CtdlMakeMessage(
        }
        StrBufRFC2047encode(&FakeEncAuthor, FakeAuthor);
        msg->cm_fields['A'] = SmashStrBuf(&FakeEncAuthor);
+       FreeStrBuf(&FakeAuthor);
 
        if (CC->room.QRflags & QR_MAILBOX) {            /* room */
                msg->cm_fields['O'] = strdup(&CC->room.QRname[11]);