From 914605c4dcf7b920ddeb4f66dc0229fa9ac4e709 Mon Sep 17 00:00:00 2001 From: "eissajamil@gmail.com" Date: Sun, 29 Mar 2015 15:59:34 -0500 Subject: [PATCH] Removal of null check Removed the redundant check for NULL which is already handled by using delete --- src/google/protobuf/io/gzip_stream.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/google/protobuf/io/gzip_stream.cc b/src/google/protobuf/io/gzip_stream.cc index c9f4ca7fa..77d485cf3 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