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
|
||||
} break;
|
||||
default:
|
||||
dlfree(sd);
|
||||
spinlock_release(&STOREDEV_LIST.spinlock);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user