From: Pierre Ossman Date: Wed, 9 Nov 2011 11:31:12 +0000 (+0000) Subject: Use the correct matching free operation. Patch by Matthieu Lochegnies. X-Git-Tag: v1.1.90~35 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5e04c269078655503422588153d09afa1d742463;p=tigervnc.git Use the correct matching free operation. Patch by Matthieu Lochegnies. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4786 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- diff --git a/common/rfb/Security.cxx b/common/rfb/Security.cxx index b5f361e9..238f3351 100644 --- a/common/rfb/Security.cxx +++ b/common/rfb/Security.cxx @@ -63,7 +63,7 @@ Security::Security(StringParameter &secTypes) secTypesStr = secTypes.getData(); enabledSecTypes = parseSecTypes(secTypesStr); - delete secTypesStr; + delete [] secTypesStr; } const std::list Security::GetEnabledSecTypes(void) diff --git a/vncviewer/CConn.cxx b/vncviewer/CConn.cxx index 46dcd228..3e008ca9 100644 --- a/vncviewer/CConn.cxx +++ b/vncviewer/CConn.cxx @@ -122,7 +122,7 @@ CConn::~CConn() if (desktop) delete desktop; - free(serverHost); + delete [] serverHost; if (sock) Fl::remove_fd(sock->getFd()); delete sock;