mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
pipefs: properly reconstruct when freeing
This commit is contained in:
@@ -447,6 +447,7 @@ int pipefs_newpipe(vnode_t **nodep) {
|
||||
|
||||
int e = ringbuffer_init(&node->data, BUFFER_SIZE);
|
||||
if (e) {
|
||||
ctor(nodecache, vnode);
|
||||
slab_free(nodecache, vnode);
|
||||
return e;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user