diff options
| author | yangwei <[email protected]> | 2021-10-08 17:55:32 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2021-10-08 17:55:32 +0800 |
| commit | 1766aba3ae69495454dd8be7181105d8a8a484b5 (patch) | |
| tree | c48b6b1937c015d22abcff0dcd3ef51c61e18bef /src/MESA_field_stat.cpp | |
| parent | b531617b28cddad3d194091e0de2f92541be44a9 (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.cpp | 7 |
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; |
