diff options
author | Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> | 2020-08-20 18:50:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-20 18:50:13 +0300 |
commit | f5a85f7747f04ae3146f0a2cdf948531fed0d47c (patch) | |
tree | 9bd79317821c5f60df328e9c02d08ae20bdb2ef1 /daemon | |
parent | 334473f888733ba96936db9ca779944c8733d77b (diff) |
Added code to release memory used by the global GUID map (#9729)
Fixed memory leak issues associated with the global GUID map during agent shutdown
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/daemon/main.c b/daemon/main.c index 1f02b24e73..d8b32d6269 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -60,7 +60,9 @@ void netdata_cleanup_and_exit(int ret) { #ifdef ENABLE_HTTPS security_clean_openssl(); #endif - +#ifdef ENABLE_DBENGINE + free_global_guid_map(); +#endif info("EXIT: all done - netdata is now exiting - bye bye..."); exit(ret); } |