From 4459bf5363991694706c8e296e4eb583de73e1e7 Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Mon, 23 Dec 2013 17:21:14 +0000 Subject: [PATCH] Also, mismatched new[]/delete in APIRequest::Process() --- src/client/requestbroker/APIRequest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/requestbroker/APIRequest.cpp b/src/client/requestbroker/APIRequest.cpp index 6685b428e..fbe5f1470 100644 --- a/src/client/requestbroker/APIRequest.cpp +++ b/src/client/requestbroker/APIRequest.cpp @@ -122,7 +122,7 @@ RequestBroker::ProcessResponse APIRequest::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; } } //RequestTime = time(NULL);