diff options
author | thiagoftsm <thiagoftsm@gmail.com> | 2020-05-25 14:27:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-25 14:27:27 +0000 |
commit | 4fb41597da6961813679c1b795793600ddc0a402 (patch) | |
tree | 4b00b831bd6fd48a1fdd069fb4f86ee29ea4a18f /exporting/opentsdb | |
parent | 6c4da08ece22cc6233ad01a9e899f13b1477055c (diff) |
Exporting cleanup (#9098)
Cleanup allocated variables for the majority of the databases.
Diffstat (limited to 'exporting/opentsdb')
-rw-r--r-- | exporting/opentsdb/opentsdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exporting/opentsdb/opentsdb.c b/exporting/opentsdb/opentsdb.c index 3bfb145517..cf55713ed8 100644 --- a/exporting/opentsdb/opentsdb.c +++ b/exporting/opentsdb/opentsdb.c @@ -12,7 +12,7 @@ int init_opentsdb_telnet_instance(struct instance *instance) { instance->worker = simple_connector_worker; - struct simple_connector_config *connector_specific_config = mallocz(sizeof(struct simple_connector_config)); + struct simple_connector_config *connector_specific_config = callocz(1, sizeof(struct simple_connector_config)); instance->config.connector_specific_config = (void *)connector_specific_config; connector_specific_config->default_port = 4242; @@ -53,7 +53,7 @@ int init_opentsdb_http_instance(struct instance *instance) { instance->worker = simple_connector_worker; - struct simple_connector_config *connector_specific_config = mallocz(sizeof(struct simple_connector_config)); + struct simple_connector_config *connector_specific_config = callocz(1, sizeof(struct simple_connector_config)); instance->config.connector_specific_config = (void *)connector_specific_config; connector_specific_config->default_port = 4242; |