summaryrefslogtreecommitdiff
path: root/src/MESA_field_stat.cpp
diff options
context:
space:
mode:
authoryangwei <[email protected]>2021-10-08 17:55:32 +0800
committeryangwei <[email protected]>2021-10-08 17:55:32 +0800
commit1766aba3ae69495454dd8be7181105d8a8a484b5 (patch)
treec48b6b1937c015d22abcff0dcd3ef51c61e18bef /src/MESA_field_stat.cpp
parentb531617b28cddad3d194091e0de2f92541be44a9 (diff)
🐞 fix(fs_stop): fs和libary增加destroy函数,Resloves TSG-7888v2.9.13
Diffstat (limited to 'src/MESA_field_stat.cpp')
-rw-r--r--src/MESA_field_stat.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/MESA_field_stat.cpp b/src/MESA_field_stat.cpp
index fd5034c..c576547 100644
--- a/src/MESA_field_stat.cpp
+++ b/src/MESA_field_stat.cpp
@@ -603,6 +603,13 @@ void FS_stop(screen_stat_handle_t* handle)
}
free(_handle->histogram_bins);
_handle->histogram_bins=NULL;
+
+ if(_handle->statsd_switch > 0)
+ {
+ close(_handle->statsd_socket);
+ }
+
+
free(_handle);
*handle=NULL;