Don't return (or dereference) dangling pointer

main
Nik Bougalis 10 years ago
parent 1e9af10ef8
commit a213971d8a
  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