mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
9pserve: fix memory leak in warning
This commit is contained in:
parent
3473f4e5fd
commit
d579124682
1 changed files with 2 additions and 0 deletions
|
@ -1248,6 +1248,8 @@ mread9p(Ioproc *io, int fd)
|
|||
nn = convM2S(pkt, n, &m->tx);
|
||||
if(nn != n){
|
||||
fprint(2, "%T read bad packet from %d\n", fd);
|
||||
free(m->tpkt);
|
||||
free(m);
|
||||
return nil;
|
||||
}
|
||||
return m;
|
||||
|
|
Loading…
Reference in a new issue