~kris/9p

9hist

11d22742c9d0e9f87f01593435d57a4f4f789044 — David du Colombier 28 years ago b0efa40
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;