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>
Mon, 15 Nov 2010 19:01:20 +0000 (20:01 +0100)
citadel/msgbase.c

index 68484783b2cb52f21e1cd82334f42f1e91114f2e..b090bf41c70150bb1c12f1852ddb8cf55025f18c 100644 (file)
@@ -3527,6 +3527,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]);