From 28422bfc719c246b0a253db93bcb9f548471a148 Mon Sep 17 00:00:00 2001 From: winlin Date: Thu, 20 Jun 2024 11:19:22 +0800 Subject: [PATCH] Fix utest fail. --- trunk/src/utest/srs_utest_http.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trunk/src/utest/srs_utest_http.cpp b/trunk/src/utest/srs_utest_http.cpp index c8a839f0fc..77a42c6e0e 100644 --- a/trunk/src/utest/srs_utest_http.cpp +++ b/trunk/src/utest/srs_utest_http.cpp @@ -748,6 +748,7 @@ VOID TEST(ProtocolHTTPTest, HTTPServerMuxerImplicitHandler) HELPER_ASSERT_SUCCESS(s.handle("/api/", h0)); MockHttpHandler* h1 = new MockHttpHandler("Done"); + SrsAutoFree(MockHttpHandler, h1); HELPER_EXPECT_FAILED(s.handle("/api/", h1)); } @@ -892,6 +893,7 @@ VOID TEST(ProtocolHTTPTest, HTTPServerMuxerBasic) HELPER_ASSERT_SUCCESS(s.initialize()); MockHttpHandler* h0 = new MockHttpHandler("Hello, world!"); + SrsAutoFree(MockHttpHandler, h0); HELPER_EXPECT_FAILED(s.handle("", h0)); }