aboutsummaryrefslogtreecommitdiff
path: root/src/libventi/client.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-06-16 03:12:39 +0000
committerrsc <devnull@localhost>2004-06-16 03:12:39 +0000
commitc5eb686096c8e5fef13230867ea7ce494b0376d7 (patch)
tree238367ec42340b6de15a266d21516cc329d386f8 /src/libventi/client.c
parentd3232caf63ede13732594f455f11909000817c9a (diff)
downloadplan9port-c5eb686096c8e5fef13230867ea7ce494b0376d7.tar.gz
plan9port-c5eb686096c8e5fef13230867ea7ce494b0376d7.tar.bz2
plan9port-c5eb686096c8e5fef13230867ea7ce494b0376d7.zip
extra assertion, fix leak in vtread
Diffstat (limited to 'src/libventi/client.c')
-rw-r--r--src/libventi/client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libventi/client.c b/src/libventi/client.c
index 5d51cc7d..a58b2089 100644
--- a/src/libventi/client.c
+++ b/src/libventi/client.c
@@ -98,6 +98,7 @@ vtread(VtConn *z, uchar score[VtScoreSize], uint type, uchar *buf, int n)
nn = packetsize(p);
if(packetconsume(p, buf, nn) < 0)
abort();
+ packetfree(p);
return nn;
}