Merge pull request #333 from nbougalis/cleanups

Don't return (or dereference) dangling pointer
main
Igor Canadi 10 years ago
commit c1273533bd
  1. 1
      db/flush_scheduler.cc

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

Loading…
Cancel
Save