2007-08-01 Michael Snyder <msnyder@access-company.com>
authorMichael Snyder <msnyder@vmware.com>
Wed, 1 Aug 2007 20:34:36 +0000 (20:34 +0000)
committerMichael Snyder <msnyder@vmware.com>
Wed, 1 Aug 2007 20:34:36 +0000 (20:34 +0000)
* remote-utils.c (putpkt_binary): Memory leak, free buf2.

gdb/gdbserver/ChangeLog
gdb/gdbserver/remote-utils.c

index cd12c4f03c92f6f73b6e4bcc885e5e9d364bbca3..eab0db2107ed053abda1b63ea29072cb255cec8a 100644 (file)
@@ -1,3 +1,7 @@
+2007-08-01  Michael Snyder  <msnyder@access-company.com>
+
+       * remote-utils.c (putpkt_binary): Memory leak, free buf2.
+
 2007-07-31  Pedro Alves  <pedro_alves@portugalmail.pt>
 
        * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
index 0e3acf4fd78932e41e6c0b8047edfc243733d69f..c02f941f4c9c38e3fee80cb0867c6b68f51a4a60 100644 (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;
        }