Logo Search packages:      
Sourcecode: samba-doc-ja version File versions

void talloc_destroy_pool ( TALLOC_CTX t  ) 

Destroy all the memory allocated inside t, but not t itself.

Definition at line 212 of file talloc.c.

References talloc_chunk::next.

Referenced by talloc_destroy().

{
      struct talloc_chunk *c;
      
      if (!t)
            return;

      while (t->list) {
            c = t->list->next;
            SAFE_FREE(t->list->ptr);
            SAFE_FREE(t->list);
            t->list = c;
      }

      t->total_alloc_size = 0;
}


Generated by  Doxygen 1.6.0   Back to index