From e8ab66c106f1604f94c98b14725730b2e1606d36 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Fri, 11 Dec 2015 14:47:01 -0800 Subject: [PATCH] Fix memory leaks --- src/core/client_config/resolvers/sockaddr_resolver.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/client_config/resolvers/sockaddr_resolver.c b/src/core/client_config/resolvers/sockaddr_resolver.c index fd0212a1e73..81d6627ecc2 100644 --- a/src/core/client_config/resolvers/sockaddr_resolver.c +++ b/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; }