diff options
author | John Millikin <jmillikin@stripe.com> | 2017-10-16 12:05:21 -0700 |
---|---|---|
committer | John Millikin <jmillikin@stripe.com> | 2017-10-16 12:05:21 -0700 |
commit | aff10976fc7722b1174fc3dcce15bfe8ebdfcbcd (patch) | |
tree | 5c6a858ce30c8ed183dc4f88c6f55d758e0b3354 /src/google/protobuf/util/json_util.h | |
parent | f850188e6e1021b4fe21ecb0aca548a54c272ce5 (diff) |
Fix undefined memory management found by Clang's sanitizers.
See https://github.com/google/protobuf/issues/3752 for context.
Diffstat (limited to 'src/google/protobuf/util/json_util.h')
-rw-r--r-- | src/google/protobuf/util/json_util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/util/json_util.h b/src/google/protobuf/util/json_util.h index f4f4380a..dee3ddba 100644 --- a/src/google/protobuf/util/json_util.h +++ b/src/google/protobuf/util/json_util.h @@ -179,7 +179,7 @@ namespace internal { class LIBPROTOBUF_EXPORT ZeroCopyStreamByteSink : public strings::ByteSink { public: explicit ZeroCopyStreamByteSink(io::ZeroCopyOutputStream* stream) - : stream_(stream), buffer_size_(0) {} + : stream_(stream), buffer_(NULL), buffer_size_(0) {} ~ZeroCopyStreamByteSink(); virtual void Append(const char* bytes, size_t len); |