kbdfs: memleak fix
This commit is contained in:
parent
684bd26f2e
commit
aaecded62a
|
@ -462,15 +462,6 @@ lineproc(void *aux)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
enum {
|
|
||||||
Areq,
|
|
||||||
Actl,
|
|
||||||
Araw,
|
|
||||||
Aline,
|
|
||||||
Akbd,
|
|
||||||
Aend,
|
|
||||||
};
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Queue reads to cons and kbd, flushing and
|
* Queue reads to cons and kbd, flushing and
|
||||||
* relay data between 9p and rawchan / kbdchan.
|
* relay data between 9p and rawchan / kbdchan.
|
||||||
|
@ -482,6 +473,7 @@ ctlproc(void *)
|
||||||
Req *h;
|
Req *h;
|
||||||
Req **t;
|
Req **t;
|
||||||
} qcons, qkbd, *q;
|
} qcons, qkbd, *q;
|
||||||
|
enum { Areq, Actl, Araw, Aline, Akbd, Aend };
|
||||||
Alt a[Aend+1];
|
Alt a[Aend+1];
|
||||||
Req *req;
|
Req *req;
|
||||||
Fid *fid;
|
Fid *fid;
|
||||||
|
@ -635,6 +627,7 @@ ctlproc(void *)
|
||||||
respond(req, nil);
|
respond(req, nil);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
free(s);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue