Fix memory leaks

pull/4434/head
Craig Tiller 9 years ago
parent d25f579b33
commit e8ab66c106
  1. 3
      src/core/client_config/resolvers/sockaddr_resolver.c

@ -347,6 +347,9 @@ static grpc_resolver *sockaddr_create(
gpr_slice_buffer_destroy(&path_parts);
gpr_slice_unref(path_slice);
if (errors_found) {
gpr_free(r->lb_policy_name);
gpr_free(r->addrs);
gpr_free(r->addrs_len);
gpr_free(r);
return NULL;
}

Loading…
Cancel
Save