diff options
author | 2017-12-15 17:32:50 -0800 | |
---|---|---|
committer | 2017-12-15 17:39:26 -0800 | |
commit | 9648f8040a559f6cf9bbe0501ba96f2b2c2864b1 (patch) | |
tree | 57dc6e959e0a534622eaf392ee43b7691378b10e /tensorflow/core/lib/io | |
parent | 5b5445b9a7aa2664a90c4fc946ecf268c971425b (diff) |
Automated g4 rollback of changelist 179258973
PiperOrigin-RevId: 179260538
Diffstat (limited to 'tensorflow/core/lib/io')
-rw-r--r-- | tensorflow/core/lib/io/snappy/snappy_outputbuffer.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/core/lib/io/snappy/snappy_outputbuffer.cc b/tensorflow/core/lib/io/snappy/snappy_outputbuffer.cc index 3c31016732..be1fa22c69 100644 --- a/tensorflow/core/lib/io/snappy/snappy_outputbuffer.cc +++ b/tensorflow/core/lib/io/snappy/snappy_outputbuffer.cc @@ -161,7 +161,7 @@ Status SnappyOutputBuffer::Deflate() { } // Write length of compressed block to output buffer. - char compressed_length_array[4]; + char* compressed_length_array = new char[4]; std::fill(compressed_length_array, compressed_length_array + 4, 0); for (int i = 0; i < 4; i++) { // Little endian. @@ -173,6 +173,7 @@ Status SnappyOutputBuffer::Deflate() { TF_RETURN_IF_ERROR(AddToOutputBuffer(output.data(), output.size())); next_in_ += avail_in_; avail_in_ = 0; + delete[] compressed_length_array; return Status::OK(); } |