iSulad/0035-thread-function-calls-DAEMON_CLEAR_ERRORMSG-to-preve.patch

27 lines
862 B
Diff
Raw Normal View History

From 2c08c9e9ce52afbe46753f44daec70270667f760 Mon Sep 17 00:00:00 2001
From: wujing <wujing50@huawei.com>
Date: Sat, 20 Feb 2021 11:07:59 +0800
Subject: [PATCH 35/53] thread function calls DAEMON_CLEAR_ERRORMSG to prevent
memory leak
Signed-off-by: wujing <wujing50@huawei.com>
---
src/daemon/modules/container/health_check/health_check.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/daemon/modules/container/health_check/health_check.c b/src/daemon/modules/container/health_check/health_check.c
index a01679db..dc00ae33 100644
--- a/src/daemon/modules/container/health_check/health_check.c
+++ b/src/daemon/modules/container/health_check/health_check.c
@@ -407,6 +407,7 @@ static void *stop_container_on_unhealthy(void *arg)
out:
free(container_id);
container_unref(cont);
+ DAEMON_CLEAR_ERRMSG();
return NULL;
}
--
2.25.1