Plan 9 from Bell Labs 1998-04-16
1 files changed, 7 insertions(+), 1 deletions(-) M port/chan.c
M port/chan.c => port/chan.c +7 -1
@@ 118,8 118,14 @@ chanfree(Chan *c) * Channel can be closed before a path is created or the last * channel in a mount which has already cleared its pt names */ if(c->path) if(c->path) { if (c->path->ref <= 0) { char buf[100]; ptpath(c->path, buf, sizeof(buf)); print("decref %s\n", buf); } decref(c->path); } lock(&chanalloc); c->next = chanalloc.free;