aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-11-04 10:54:20 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-11-04 10:54:20 -0700
commit268557790603150f3519b451b089b98d281d9b80 (patch)
tree03e1ec6dcd5489e12e20321615730d7009d463cb /src/core/lib
parentb044445174f0afd04c44b86813b49a222d6e25d0 (diff)
Fix memory leak
Diffstat (limited to 'src/core/lib')
-rw-r--r--src/core/lib/support/slice.c2
1 files changed, 1 insertions, 1 deletions
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;