diff options
author | cmumford <cmumford@google.com> | 2016-01-30 07:44:54 -0800 |
---|---|---|
committer | Chris Mumford <cmumford@chromium.org> | 2016-03-31 15:53:30 -0700 |
commit | 32113439095d148fa93c7581a15f52ff26a389d3 (patch) | |
tree | d9184b1a7851f5bc8a4ad8d211c575b2da0e6be2 /table | |
parent | 7306ef856a91e462a73ff1832c1fa8771008ba36 (diff) | |
download | leveldb-32113439095d148fa93c7581a15f52ff26a389d3.tar.gz |
Deleted redundant null ptr check prior to delete.
Fixes issue #338.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=113439460
Diffstat (limited to 'table')
-rw-r--r-- | table/table.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/table/table.cc b/table/table.cc index dff8a82..decf808 100644 --- a/table/table.cc +++ b/table/table.cc @@ -82,7 +82,7 @@ Status Table::Open(const Options& options, *table = new Table(rep); (*table)->ReadMeta(footer); } else { - if (index_block) delete index_block; + delete index_block; } return s; |