Skip to content

Commit 8c25325

Browse files
committed
fix(webserver): OTHER_AUTH will leak memory
1 parent 8a87df3 commit 8c25325

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: libraries/WebServer/src/WebServer.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ bool WebServer::authenticate(THandlerFunctionAuthCheck fn) {
268268
String *ret = fn(OTHER_AUTH, authReq, {});
269269
if (ret) {
270270
log_v("Authentication Success");
271+
delete ret;
271272
return true;
272273
}
273274
}

0 commit comments

Comments
 (0)