Merge pull request #333 from nbougalis/cleanups

Don't return (or dereference) dangling pointer
This commit is contained in:
Igor Canadi 2014-10-02 15:14:40 -07:00
commit c1273533bd
1 changed files with 1 additions and 0 deletions

View File

@ -28,6 +28,7 @@ ColumnFamilyData* FlushScheduler::GetNextColumnFamily() {
if (cfd->IsDropped()) {
if (cfd->Unref()) {
delete cfd;
cfd = nullptr;
}
} else {
break;