talloc
« Back to VersTracker
Description:
Hierarchical, reference-counted memory pool with destructors
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c-library memory-management samba development
Install: brew install talloc
About:
Talloc is a hierarchical, reference-counted memory pool system that provides a safe and efficient alternative to malloc/free. It allows for complex object trees where child allocations are automatically freed when a parent is destroyed, preventing memory leaks. Its main value is simplifying memory management in C applications, particularly those interfacing with LDAP or Samba libraries.
Key Features:
  • Hierarchical memory pools
  • Automatic reference counting
  • Destructor support for safe cleanup
  • Performance optimized for C applications
Use Cases:
  • Memory management in C/C++ applications
  • Building robust Samba or LDAP clients
  • Preventing memory leaks in complex data structures
Alternatives:
  • Boehm GC – Talloc is deterministic and hierarchical, whereas Boehm GC is a conservative garbage collector.
  • Standard malloc/free – Talloc adds safety and automatic cleanup via destructors, reducing manual error handling.
Version History
Detected Version Rev Change Commit
Sep 10, 2025 9:01am 0 VERSION_BUMP 1fc5250d