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

View file

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