Re: I have found this leak
"DINH Viêt Hoà" <[email protected]> Sun, 25 Nov 2007 15:58:20 +0100
| Newsgroups | gmane.mail.libetpan.user |
|---|---|
| Message-ID | <[email protected]> |
On Nov 23, 2007 10:03 PM, Алексей Ставцев <[email protected]> wrote: > > I have found this leak. > > I attached two little test: > > The first test has only one single part, and the second has 2 single parts with data. The first test works ok, but the second causes a memory leak. I used these functions in my server, and I have found that my program after some time uses too much memory. I suppose that leak occurs in mailmime_part_write_driver function whis is situated in /src/low_level/mime/mailmime_write_generic.c .A function mailmime_part_write_driver on 779 string uses function mailmime_extract_boundry which allocates a memory for the char array "boundary" and doesn't free it. > > test1.c - the 1'st test > test2.c - the 2'nd test > test1.debug.log - ccmalloc log for the first test > test2.debug.log - ccmalloc log for the second test Hello, Thanks. This memory leak has been fixed in the latest CVS. -- DINH Viêt Hoà ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Libetpan-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libetpan-users