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