This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push:
new 4da1718 [fix] memory leak in ResourceTls (#8517)
4da1718 is described below
commit 4da17181478692f5e9cdebd087a9a06e10e02b04
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]