diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/9pserve.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/9pserve.c b/src/cmd/9pserve.c index 077715d6..24c80714 100644 --- a/src/cmd/9pserve.c +++ b/src/cmd/9pserve.c @@ -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; |