Don't return (or dereference) dangling pointer
This commit is contained in:
parent
1e9af10ef8
commit
a213971d8a
@ -28,6 +28,7 @@ ColumnFamilyData* FlushScheduler::GetNextColumnFamily() {
|
|||||||
if (cfd->IsDropped()) {
|
if (cfd->IsDropped()) {
|
||||||
if (cfd->Unref()) {
|
if (cfd->Unref()) {
|
||||||
delete cfd;
|
delete cfd;
|
||||||
|
cfd = nullptr;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user