From 268557790603150f3519b451b089b98d281d9b80 Mon Sep 17 00:00:00 2001
From: Craig Tiller <ctiller@google.com>
Date: Fri, 4 Nov 2016 10:54:20 -0700
Subject: [PATCH] Fix memory leak

---
 src/core/lib/support/slice.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/lib/support/slice.c b/src/core/lib/support/slice.c
index f15a9a1e21..2959a6716f 100644
--- a/src/core/lib/support/slice.c
+++ b/src/core/lib/support/slice.c
@@ -351,7 +351,7 @@ int gpr_slice_str_cmp(gpr_slice a, const char *b) {
 
 int gpr_slice_is_equivalent(gpr_slice a, gpr_slice b) {
   if (a.refcount == NULL || b.refcount == NULL) {
-    return gpr_slice_cmp(a, b);
+    return gpr_slice_cmp(a, b) == 0;
   }
   return a.data.refcounted.length == b.data.refcounted.length &&
          a.data.refcounted.bytes == b.data.refcounted.bytes;
-- 
GitLab