mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 07:28:21 +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);
|
int e = ringbuffer_init(&node->data, BUFFER_SIZE);
|
||||||
if (e) {
|
if (e) {
|
||||||
|
ctor(nodecache, vnode);
|
||||||
slab_free(nodecache, vnode);
|
slab_free(nodecache, vnode);
|
||||||
return e;
|
return e;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user