2007-08-01 Michael Snyder <msnyder@access-company.com>

* remote-utils.c (putpkt_binary): Memory leak, free buf2.
This commit is contained in:
Michael Snyder
2007-08-01 20:34:36 +00:00
parent 3cebf8d882
commit f88c79e6bb
2 changed files with 5 additions and 0 deletions

View File

@@ -549,6 +549,7 @@ putpkt_binary (char *buf, int cnt)
if (write (remote_desc, buf2, p - buf2) != p - buf2)
{
perror ("putpkt(write)");
free (buf2);
return -1;
}