From 0c4afa78fe997f147136d3f81f8503ef623ea90a Mon Sep 17 00:00:00 2001 From: liuxueli Date: Thu, 24 Feb 2022 16:07:40 +0800 Subject: TSG-7888: 释放prometheous句柄的资源,并置空 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/fs2prometheus.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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 ; } -- cgit v1.2.3