diff options
author | Craig Tiller <ctiller@google.com> | 2016-04-22 13:14:35 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-04-22 13:14:35 -0700 |
commit | 3ec4b83f7a6e8489c786ad5d2bcf99eb61c11736 (patch) | |
tree | 7fda3527c9d5cf676f9f4034b403a640ea5c203a /src | |
parent | b42445c00e1499334c195407a28a49e2251cf0e2 (diff) |
Fix memory leak in failed metadata preparation
Diffstat (limited to 'src')
-rw-r--r-- | src/core/lib/surface/call.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/surface/call.c b/src/core/lib/surface/call.c index 6b5e891e14..0fcbed66fc 100644 --- a/src/core/lib/surface/call.c +++ b/src/core/lib/surface/call.c @@ -576,7 +576,7 @@ static int prepare_application_metadata(grpc_call *call, int count, } if (i != count) { for (int j = 0; j <= i; j++) { - grpc_metadata *md = &metadata[i]; + grpc_metadata *md = &metadata[j]; grpc_linked_mdelem *l = (grpc_linked_mdelem *)&md->internal_data; GRPC_MDELEM_UNREF(l->md); } |