diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2022-05-07 23:00:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-07 23:00:44 +0300 |
commit | 79444d36459b105f093c5626eea8f0b45af7f421 (patch) | |
tree | b260e2268c3ec6deff4abf32aff9ef20b85a2ce8 /daemon | |
parent | 0cbf49860b14a04a618345f7029cd2000e651f89 (diff) |
fix memory leaks and mismatches of the use of the z functions for allocations (#12841)
* fix mismatches of the use of the z functions for allocations
* when there was no memory; the original name of the dimensions was freed, and with mismatching deallocator..
* fixed memory leak at rrdeng_load_metric_*() functions
* fixed memory leak on exit of plugins.d parser
* fixed memory leak on plugins and streaming receiver threads exit
* fixed compiler warnings
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/main.c b/daemon/main.c index 4b90dd74d6..74684b7312 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -1235,7 +1235,7 @@ int main(int argc, char **argv) { // initialize rrd, registry, health, rrdpush, etc. netdata_anonymous_statistics_enabled=-1; - struct rrdhost_system_info *system_info = calloc(1, sizeof(struct rrdhost_system_info)); + struct rrdhost_system_info *system_info = callocz(1, sizeof(struct rrdhost_system_info)); get_system_info(system_info); system_info->hops = 0; get_install_type(&system_info->install_type, &system_info->prebuilt_arch, &system_info->prebuilt_dist); |