summaryrefslogtreecommitdiff
path: root/src/MESA_field_stat.cpp
diff options
context:
space:
mode:
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;