added talloc_enable_null_tracking()
[tridge/junkcode.git] / talloc / talloc_guide.txt
index 4ab0f8eacc3c70a46ae6ee11978ebe4f76fc4110..5c9b7dcae762afbcd9e13cca77729db721a9c149 100644 (file)
@@ -407,6 +407,14 @@ full talloc report on 'root' (total 18 bytes in 8 blocks)
         x1                             contains      1 bytes in   1 blocks (ref 0)
 
 
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+void talloc_enable_null_tracking(void);
+
+This enables tracking of the NULL memory context without enabling leak
+reporting on exit. Useful for when you want to do your own leak
+reporting call via talloc_report_null_full();
+
+
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 (type *)talloc_zero(const void *ctx, type);