problem using INTERFACE_BUFFER
David Relson <[email protected]> Sun, 22 Dec 2002 21:02:54 -0500
| Newsgroups | gmane.mail.eps |
|---|---|
| Message-ID | <[email protected]> |
Greetings, I'm experimenting with INTERFACE_BUFFER, turned on MEM_DEBUG to verify storage is being properly freed up, and have run into a snag. I'm using a line_t struct, adding the email to it using line_inject(), printing the message (usign eps_next_header(), eps_next_line(), mime_next_header(), mime_next_line()), and at the end calling line_kill to free the line_t struct. The setup and printing work fine, but the cleanup at the end gives message: "MEM_DEBUG: MFREE: Unknown allocation space at 0x804e5d8 (Searched 1 records)" Looking at the code, I see line_inject() uses realloc() to increase text storage allocation and line_kill uses mfree(). The mixture of storage allocation styles (libc and user) seems to be at issue. I've taken a look at mrealloc() which would seem to be the logical answer, but it doesn't seem complete. I'm using eps-1.2. Are there any patches for it? Is there a newer version available? Thanks. David