extra assertion, fix leak in vtread

This commit is contained in:
rsc 2004-06-16 03:12:39 +00:00
parent d3232caf63
commit c5eb686096
2 changed files with 3 additions and 0 deletions

View file

@ -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;
}