aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/io
diff options
context:
space:
mode:
authorGravatar Joshua Haberman <jhaberman@gmail.com>2016-02-16 16:47:46 -0800
committerGravatar Joshua Haberman <jhaberman@gmail.com>2016-02-16 16:47:46 -0800
commitd41db75dcbbad0a7c3af5fb9f3b071cf6084243d (patch)
treedf579dfcd102a17cbf44063dff51f469fe4e2f15 /src/google/protobuf/io
parent8fc045d8d29732adfad986900363e907fd0f7e8f (diff)
parent914605c4dcf7b920ddeb4f66dc0229fa9ac4e709 (diff)
Merge pull request #260 from ejsd1989/issue-#242
Removes redundant null pointer checks checks
Diffstat (limited to 'src/google/protobuf/io')
-rw-r--r--src/google/protobuf/io/gzip_stream.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/google/protobuf/io/gzip_stream.cc b/src/google/protobuf/io/gzip_stream.cc
index 1be6c863..9c621b6a 100644
--- a/src/google/protobuf/io/gzip_stream.cc
+++ b/src/google/protobuf/io/gzip_stream.cc
@@ -241,9 +241,7 @@ void GzipOutputStream::Init(ZeroCopyOutputStream* sub_stream,
GzipOutputStream::~GzipOutputStream() {
Close();
- if (input_buffer_ != NULL) {
- operator delete(input_buffer_);
- }
+ operator delete(input_buffer_);
}
// private