diff options
author | Ray Lai <ray@raylai.com> | 2018-01-19 00:39:41 +0800 |
---|---|---|
committer | David du Colombier <0intro@gmail.com> | 2018-03-23 11:55:19 +0100 |
commit | d5791246822e27ef99a593d11518b457ce439a85 (patch) | |
tree | ba2ba41a5c553023d4c18e57099944d9a81d9283 /src/cmd/9pserve.c | |
parent | 3473f4e5fde931d4988c84aa46ca3dbcf9c1150d (diff) | |
download | plan9port-d5791246822e27ef99a593d11518b457ce439a85.tar.gz plan9port-d5791246822e27ef99a593d11518b457ce439a85.tar.bz2 plan9port-d5791246822e27ef99a593d11518b457ce439a85.zip |
9pserve: fix memory leak in warning
Diffstat (limited to 'src/cmd/9pserve.c')
-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; |