From 7fdc4dc83be0cfcbc302a3997d81f8d6c121bbbf Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Mon, 23 Dec 2013 19:16:04 +0000 Subject: [PATCH] Mismatched new[]/delete in WebRequest::Process() --- src/client/requestbroker/WebRequest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/requestbroker/WebRequest.cpp b/src/client/requestbroker/WebRequest.cpp index 532cda712..4b9b3a1a2 100644 --- a/src/client/requestbroker/WebRequest.cpp +++ b/src/client/requestbroker/WebRequest.cpp @@ -122,7 +122,7 @@ RequestBroker::ProcessResponse WebRequest::Process(RequestBroker & rb) std::strcpy(userName, format::NumberToString(user.ID).c_str()); std::strcpy(userSession, user.SessionID.c_str()); http_auth_headers(HTTPContext, userName, NULL, userSession); - delete userSession; + delete[] userSession; } } }