1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00
Andrew Tridgell 351ca44e8b r2674: I have realised that talloc() should have its context marked const, as
a const pointer really means that "the data pointed to by this pointer
won't change", and that is certainly true of talloc(). The fact that
some behind-the-scenes meta-data can change doesn't matter from the
point of view of const.

this fixes a number of const warnings caused by const data structures
being passed as talloc contexts. That will no longer generate a
warning.

also changed the talloc leak reporting option from --leak-check to
--leak-report, as all it does is generate a report on exit. A new
--leak-report-full option has been added that shows the complete tree
of memory allocations, which is is quite useful in tracking things down.

NOTE: I find it quite useful to insert talloc_report_full(ptr, stderr)
calls at strategic points in the code while debugging memory
allocation problems, particularly before freeing a major context (such
as the connection context). This allows you to see if that context has
been accumulating too much data, such as per-request data, which
should have been freed when the request finished.
(This used to be commit c60ff99c3129c26a9204bac1c6e5fb386114a923)
2007-10-10 12:59:20 -05:00
..
2007-10-10 12:57:54 -05:00
2007-10-10 12:57:47 -05:00
2003-08-13 01:53:07 +00:00
2007-10-10 12:57:43 -05:00
2007-10-10 12:56:23 -05:00
2003-08-13 01:53:07 +00:00
2003-08-13 01:53:07 +00:00
2003-12-16 03:45:04 +00:00
2007-10-10 12:56:36 -05:00
2003-08-13 01:53:07 +00:00
2007-10-10 12:59:01 -05:00
2003-08-13 01:53:07 +00:00