changelog shortlog tags branches changeset file revisions annotate raw help

Mercurial > hg > plan9front / sys/src/cmd/upas/fs/mbox.c

revision 7405: 82225c0fc1a2
parent 7098: a55cb6124fca
child 7454: a27566709691
     1.1--- a/sys/src/cmd/upas/fs/mbox.c
     1.2+++ b/sys/src/cmd/upas/fs/mbox.c
     1.3@@ -267,7 +267,7 @@ newmbox(char *path, char *name, int flag
     1.4 	mb->next = nil;
     1.5 	mb->id = newid();
     1.6 	mb->root = newmessage(nil);
     1.7-	mb->mtree = avlcreate(mtreecmp);
     1.8+	mtreeinit(mb);
     1.9 
    1.10 	*l = mb;
    1.11 
    1.12@@ -1187,7 +1187,7 @@ mboxdecref(Mailbox *mb)
    1.13 	if(mb->flags & ORCLOSE && mb->remove)
    1.14 	if(mb->remove(mb, mb->rmflags))
    1.15 		rmidx(mb->path, mb->rmflags);
    1.16-	free(mb->mtree);
    1.17+	mtreefree(mb);
    1.18 	free(mb->d);
    1.19 	free(mb);
    1.20 }