aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/io
diff options
context:
space:
mode:
authoreissajamil@gmail.com <eissajamil@gmail.com>2015-03-29 15:59:34 -0500
committereissajamil@gmail.com <eissajamil@gmail.com>2015-03-29 15:59:34 -0500
commit914605c4dcf7b920ddeb4f66dc0229fa9ac4e709 (patch)
tree9de9d4d347aebfbc383a167a285f586360e4766d /src/google/protobuf/io
parenta1c5e45db3549276072033423ae786e91bfacde6 (diff)
downloadprotobuf-914605c4dcf7b920ddeb4f66dc0229fa9ac4e709.tar.gz
protobuf-914605c4dcf7b920ddeb4f66dc0229fa9ac4e709.tar.bz2
protobuf-914605c4dcf7b920ddeb4f66dc0229fa9ac4e709.zip
Removal of null check
Removed the redundant check for NULL which is already handled by using delete
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 c9f4ca7f..77d485cf 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