Skip to content
Snippets Groups Projects
Commit 26855779 authored by Craig Tiller's avatar Craig Tiller
Browse files

Fix memory leak

parent b0444451
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment