Also, mismatched new[]/delete in APIRequest::Process()
This commit is contained in:
parent
aa74deb6d5
commit
4459bf5363
@ -122,7 +122,7 @@ RequestBroker::ProcessResponse APIRequest::Process(RequestBroker & rb)
|
||||
std::strcpy(userName, format::NumberToString<int>(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);
|
||||
|
Loading…
Reference in New Issue
Block a user