Bugs item #1975196, was opened at 2008-05-27 19:14 Message generated for change (Settings changed) made by sjoerd You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1975196&group_id=56967
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: Mapi >Group: Clients 1.24 >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Stefan de Konink (skinkie) Assigned to: Sjoerd Mullender (sjoerd) Summary: mapi_cache_freeup in example Initial Comment: In the example [1], I found valgrid complaining about a few things. The actual leaking was solved by placing mapi_cache_freeup(hdl, 100); before the last mapi_close_handle. The other problems can be find by running valgrind on the example. by 0x5B564D2: stream_init (stream.mx:372) The above is a starting point. [1]http://monetdb.cwi.nl/projects/monetdb/SQL/Documentation/An-Example.html#An-Example ---------------------------------------------------------------------- >Comment By: Sjoerd Mullender (sjoerd) Date: 2008-06-03 17:06 Message: Logged In: YES user_id=43607 Originator: NO The first paragraph of the report is a real memory leak which was fixed by freeing the allocated memory where the rest of the result handle was being freed. The example doesn't have to be changed. The "other problems" is not a true memory leak. Memory is allocated in stream_init() by the call to SSL_load_error_strings(). In principle this memory can be freed by a call to ERR_free_strings(), but there is no point in doing so: that call would happen when the program exits, and then the memory is freed by the system anyway. In addition, there is no call to close the stream library, and there is also no call to close the Mapi library which would have to close the stream library. No test added since it is not really feasible to make one. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1975196&group_id=56967 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Monetdb-bugs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/monetdb-bugs
