EX-23.1 5 exhibit231_consentofindepe.htm EX-23.1 Document





Consent of Independent Registered Public Accounting Firm

We consent to the incorporation by reference of our reports dated November 14, 2022, with respect to the consolidated financial statements of Oaktree Specialty Lending Corporation and the effectiveness of internal control over financial reporting of Oaktree Specialty Lending Corporation included in this Annual Report (Form 10-K) for the year ended September 30, 2022, into the Registration Statement (Form N-2, File No. 333-234798), filed with the Securities and Exchange Commission.

/s/ Ernst & Young LLP
Los Angeles, CA
November 14, 2022