summaryrefslogtreecommitdiff
path: root/table
diff options
context:
space:
mode:
authorcmumford <cmumford@google.com>2016-01-30 07:44:54 -0800
committerChris Mumford <cmumford@chromium.org>2016-03-31 15:53:30 -0700
commit32113439095d148fa93c7581a15f52ff26a389d3 (patch)
treed9184b1a7851f5bc8a4ad8d211c575b2da0e6be2 /table
parent7306ef856a91e462a73ff1832c1fa8771008ba36 (diff)
downloadleveldb-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.cc2
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;