]> granicus.if.org Git - mutt/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)
commit43adac898b00adf24c0f63713abdb04f7d1f9967
tree8cd13a9755af5193f779f4a0fdd94d2bb63d33f7
parent6ad6dd14850c7f3705e81ab05130ceb84b7a6d5e
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