summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2022-02-24 16:07:40 +0800
committerliuxueli <[email protected]>2022-02-24 16:07:40 +0800
commit0c4afa78fe997f147136d3f81f8503ef623ea90a (patch)
treebcf431cb05b105e0195f231e1e01d08dec7ec545
parent02d323b2d6fbd3963c0cbe22328f06d48506ac5d (diff)
TSG-7888: 释放prometheous句柄的资源,并置空v2.10.2
-rw-r--r--src/fs2prometheus.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fs2prometheus.cpp b/src/fs2prometheus.cpp
index 210a8d8..206cf89 100644
--- a/src/fs2prometheus.cpp
+++ b/src/fs2prometheus.cpp
@@ -433,7 +433,12 @@ void FS_library_destroy(void)
if(g_FS2_LIBRARY_handle.fs2_handle)
{
free(g_FS2_LIBRARY_handle.fs2_handle);
+ g_FS2_LIBRARY_handle.fs2_handle=NULL;
}
+
+ g_FS2_LIBRARY_handle.using_fs2_handle_cnt=0;
+ g_FS2_LIBRARY_handle.fs2_handle_cnt=0;
+
return ;
}