Problem with use of memory
"Daniel" <[email protected]> Sat, 4 Feb 2006 15:23:10 +0100
| Newsgroups | gmane.mail.libetpan.user |
|---|---|
| Message-ID | <[email protected]> |
Hello :) I'm using libetpan 0.41 in a Mail Program running under Solaris I'm using this code to get new Mail Header from the server. struct mailimap_set * set; struct mailimap_fetch_Type * fetchType; clist * result; clistcell * current; int last; int r; last = imapstruct->imap_selection_info->sel_exists; set = mailimap_set_new_interval( 1, last ); /* Index start mit 1!!!! */ fetchType = (struct mailimap_fetch_Type *)mailimap_fetch_type_new_all( ); r = mailimap_fetch( imapstruct, set, fetchType, &result ); mailimap_set_free( set ); mailimap_fetch_type_free( fetchType ); clist_free(result); But when I execute this code twice, the use of memory gets higher and higher. It seems that the clist_free function don't return all memory back to the program for further allocations. Can someone tell me, what to do, that it don't use more memory in the second run, than in the first run? The mails were in both cases the same. The problem must be in this peace of code, because I've tested the other peaces, such as login and logout, and it works. When I leve the mailimap_fetch function out, it don't allocate as much memory, too. Thanks in advance :) Daniel ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642