commit | 361e279c59273dc82b1a5ced832d790a3b8b7a28 | [log] [tgz] |
---|---|---|
author | rsc <devnull@localhost> | Tue Jan 18 20:15:18 2005 +0000 |
committer | rsc <devnull@localhost> | Tue Jan 18 20:15:18 2005 +0000 |
tree | 88800a8bd0bb2c8ca81bd163de87b398f685cd5b | |
parent | aa1d0b1bb0129243f0c4d7c6b3892d8f0556f80a [diff] [blame] |
bug fixes
diff --git a/src/libventi/client.c b/src/libventi/client.c index b06e0fb..ddee7cc 100644 --- a/src/libventi/client.c +++ b/src/libventi/client.c
@@ -135,9 +135,12 @@ vtwrite(VtConn *z, uchar score[VtScoreSize], uint type, uchar *buf, int n) { Packet *p; + int nn; p = packetforeign(buf, n, 0, nil); - return vtwritepacket(z, score, type, p); + nn = vtwritepacket(z, score, type, p); + packetfree(p); + return nn; } int