This is an automated email from the ASF dual-hosted git repository. morningman pushed a commit to branch dev-1.0.1 in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
commit 10e5c51b9340d4563c38a5ae6055ad38adbe6191 Author: morrySnow <[email protected]> AuthorDate: Fri Mar 18 09:42:19 2022 +0800 [fix] memory leak in ResourceTls (#8517) --- be/src/common/resource_tls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/be/src/common/resource_tls.cpp b/be/src/common/resource_tls.cpp index b5fd7af..5ac6c94 100644 --- a/be/src/common/resource_tls.cpp +++ b/be/src/common/resource_tls.cpp @@ -29,7 +29,7 @@ static bool s_is_init = false; static void resource_destructor(void* value) { TResourceInfo* info = (TResourceInfo*)value; - if (info == nullptr) { + if (info != nullptr) { delete info; } } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
