Skip to content
Snippets Groups Projects
Commit 6a6233b7 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Fix a couple of memory leaks in rend_add_service spotted by coverity

parent 95163ec0
No related branches found
No related tags found
No related merge requests found
......@@ -174,7 +174,7 @@ rend_add_service(rend_service_t *service)
smartlist_len(service->clients) == 0) {
log_warn(LD_CONFIG, "Hidden service (%s) with client authorization but no "
"clients; ignoring.",
esc_for_log(service->directory));
escaped(service->directory));
rend_service_free(service);
return;
}
......@@ -182,7 +182,7 @@ rend_add_service(rend_service_t *service)
if (!smartlist_len(service->ports)) {
log_warn(LD_CONFIG, "Hidden service (%s) with no ports configured; "
"ignoring.",
esc_for_log(service->directory));
escaped(service->directory));
rend_service_free(service);
} else {
int dupe = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment