From 5e04c269078655503422588153d09afa1d742463 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 9 Nov 2011 11:31:12 +0000 Subject: [PATCH] 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 --- common/rfb/Security.cxx | 2 +- vncviewer/CConn.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5