ndbfree.c 233 B

1234567891011121314151617181920
  1. #include <u.h>
  2. #include <libc.h>
  3. #include <bio.h>
  4. #include <ctype.h>
  5. #include <ndb.h>
  6. #include "ndbhf.h"
  7. /*
  8. * free a parsed entry
  9. */
  10. void
  11. ndbfree(Ndbtuple *t)
  12. {
  13. Ndbtuple *tn;
  14. for(; t; t = tn){
  15. tn = t->entry;
  16. free(t);
  17. }
  18. }