fix tiny leak
This commit is contained in:
@ -135,6 +135,7 @@ StoreDev *storedev_create(int32_t sdtype, char *name, void *extra) {
|
|||||||
sd->sectorsize = 0; // lazy
|
sd->sectorsize = 0; // lazy
|
||||||
} break;
|
} break;
|
||||||
default:
|
default:
|
||||||
|
dlfree(sd);
|
||||||
spinlock_release(&STOREDEV_LIST.spinlock);
|
spinlock_release(&STOREDEV_LIST.spinlock);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user