Skip to content

Commit e79182f

Browse files
authored
authproxy: Release client request handle in StateAuthorized (#13258)
TSHttpTxnClientReqGet was not paired with TSHandleMLocRelease, unlike every other call site in this file. The handle is a top-level HTTP_HEADER mloc so the release is effectively a no-op today, but matching the documented API contract avoids surprises if the SDK implementation ever changes.
1 parent 77253da commit e79182f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

plugins/authproxy/authproxy.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,8 @@ StateAuthorized(AuthRequestContext *auth, void *)
661661
TSHandleMLocRelease(auth->rheader.buffer, auth->rheader.header, field_loc);
662662
field_loc = next_field_loc;
663663
}
664+
665+
TSHandleMLocRelease(request_bufp, TS_NULL_MLOC, request_hdr);
664666
}
665667

666668
// Proceed with the modified request

0 commit comments

Comments
 (0)