diff --git a/src/open_telemetry_exporter.cc b/src/open_telemetry_exporter.cc index de62e74b8d..564f9949c3 100644 --- a/src/open_telemetry_exporter.cc +++ b/src/open_telemetry_exporter.cc @@ -149,6 +149,7 @@ static void ot_callback_decref(void *data) { sfree(cb->port); delete cb->ssl_opts; + cb->ssl_opts = NULL; pthread_mutex_unlock(&cb->mu); pthread_mutex_destroy(&cb->mu); diff --git a/src/open_telemetry_receiver.cc b/src/open_telemetry_receiver.cc index e975a048d3..56c644d56e 100644 --- a/src/open_telemetry_receiver.cc +++ b/src/open_telemetry_receiver.cc @@ -80,7 +80,6 @@ struct Listener { grpc::SslServerCredentialsOptions *ssl; }; static std::vector listeners; -static grpc::string default_addr("0.0.0.0:4317"); /* * helper functions