Skip to content
Snippets Groups Projects
Commit 50b3a1ec authored by Axel Naumann's avatar Axel Naumann
Browse files

Fix mismatch malloc/delete.

parent 199ad8b2
Branches
Tags
No related merge requests found
...@@ -617,7 +617,7 @@ void THttpServer::ProcessRequest(THttpCallArg *arg) ...@@ -617,7 +617,7 @@ void THttpServer::ProcessRequest(THttpCallArg *arg)
Int_t len = 0; Int_t len = 0;
char *buf = ReadFileContent(fDefaultPage.Data(), len); char *buf = ReadFileContent(fDefaultPage.Data(), len);
if (len > 0) fDefaultPageCont.Append(buf, len); if (len > 0) fDefaultPageCont.Append(buf, len);
delete buf; free(buf);
} }
if (fDefaultPageCont.Length() == 0) { if (fDefaultPageCont.Length() == 0) {
...@@ -658,7 +658,7 @@ void THttpServer::ProcessRequest(THttpCallArg *arg) ...@@ -658,7 +658,7 @@ void THttpServer::ProcessRequest(THttpCallArg *arg)
Int_t len = 0; Int_t len = 0;
char *buf = ReadFileContent(fDrawPage.Data(), len); char *buf = ReadFileContent(fDrawPage.Data(), len);
if (len > 0) fDrawPageCont.Append(buf, len); if (len > 0) fDrawPageCont.Append(buf, len);
delete buf; free(buf);
} }
if (fDrawPageCont.Length() == 0) { if (fDrawPageCont.Length() == 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment