]> granicus.if.org Git - neomutt/commit
mutt_gen_msgid() allocates the msgid off of the heap.
authorErik Hovland <erik@hovland.org>
Tue, 16 Dec 2008 22:31:43 +0000 (14:31 -0800)
committerErik Hovland <erik@hovland.org>
Tue, 16 Dec 2008 22:31:43 +0000 (14:31 -0800)
commit375ece842823b48570ebcdeedf6e64b25ed4dacf
tree8cd13a9755af5193f779f4a0fdd94d2bb63d33f7
parentd08929363244b2200c862488b02d0645c7051980
mutt_gen_msgid() allocates the msgid off of the heap.

Since mutt_gen_msgid() allocates the msgid string with
strdup, it is getting it off of the heap.

When the fprintf writes the msgid, the string is no longer
tracked and that string is leaked.
sendlib.c