kbdfs: memleak fix

This commit is contained in:
cinap_lenrek 2011-05-11 08:13:33 +00:00
parent 684bd26f2e
commit aaecded62a

View file

@ -462,15 +462,6 @@ lineproc(void *aux)
}
}
enum {
Areq,
Actl,
Araw,
Aline,
Akbd,
Aend,
};
/*
* Queue reads to cons and kbd, flushing and
* relay data between 9p and rawchan / kbdchan.
@ -482,6 +473,7 @@ ctlproc(void *)
Req *h;
Req **t;
} qcons, qkbd, *q;
enum { Areq, Actl, Araw, Aline, Akbd, Aend };
Alt a[Aend+1];
Req *req;
Fid *fid;
@ -635,6 +627,7 @@ ctlproc(void *)
respond(req, nil);
}
}
free(s);
break;
}
}