Index: tigervnc_svn/vncviewer/CConn.cxx
===================================================================
--- tigervnc_svn/vncviewer/CConn.cxx	(revision 4785)
+++ tigervnc_svn/vncviewer/CConn.cxx	(working copy)
@@ -122,7 +124,7 @@
   if (desktop)
     delete desktop;
 
-  free(serverHost);
+  delete [] serverHost;
   if (sock)
     Fl::remove_fd(sock->getFd());
   delete sock;
Index: tigervnc_svn/common/rfb/Security.cxx
===================================================================
--- tigervnc_svn/common/rfb/Security.cxx	(revision 4785)
+++ tigervnc_svn/common/rfb/Security.cxx	(working copy)
@@ -63,7 +63,7 @@
   secTypesStr = secTypes.getData();
   enabledSecTypes = parseSecTypes(secTypesStr);
 
-  delete secTypesStr;
+  delete [] secTypesStr;
 }
 
 const std::list<rdr::U8> Security::GetEnabledSecTypes(void)
