commit | 65047c01954e1ec7e98b6520958b16d8d1e54cf7 | [log] [tgz] |
---|---|---|
author | Craig Tiller <craig.tiller@gmail.com> | Mon Feb 02 14:50:01 2015 -0800 |
committer | Craig Tiller <craig.tiller@gmail.com> | Mon Feb 02 14:50:01 2015 -0800 |
tree | ee98c12544c44a9ad1bbf0449de44bf748ab00ee | |
parent | 05b8acccd271a01f041ad311e40dc7bc434ff414 [diff] | |
parent | 24e820b226e36b6a28b16a7e650106014360a44d [diff] |
Merge pull request #351 from yang-g/lsan Fix a memory leak.
diff --git a/src/core/httpcli/format_request.c b/src/core/httpcli/format_request.c index 58bb7c7..5d1a04e 100644 --- a/src/core/httpcli/format_request.c +++ b/src/core/httpcli/format_request.c
@@ -105,6 +105,8 @@ } gpr_strvec_add(&out, gpr_strdup("\r\n")); tmp = gpr_strvec_flatten(&out, &out_len); + gpr_strvec_destroy(&out); + if (body_bytes) { tmp = gpr_realloc(tmp, out_len + body_size); memcpy(tmp + out_len, body_bytes, body_size);