Same reasoning as in the previous commit.
Signed-off-by: Marco Schlumpp <marco@unikraft.io>
Reviewed-by: Tu Dinh Ngoc <dinhngoc.tu@irit.fr>
Reviewed-by: Eduard Vintilă <eduard.vintila47@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #1000
goto ERR_MALLOC_FILE;
}
- vfs_file = uk_malloc(a, sizeof(struct vfscore_file));
+ vfs_file = malloc(sizeof(struct vfscore_file));
if (unlikely(!vfs_file)) {
ret = -ENOMEM;
goto ERR_MALLOC_VFS_FILE;
ERR_ALLOC_DENTRY:
vput(vfs_vnode);
ERR_ALLOC_VNODE:
- uk_free(a, vfs_file);
+ free(vfs_file);
ERR_MALLOC_VFS_FILE:
uk_free(a, ep);
ERR_MALLOC_FILE:
goto ERR_MALLOC_FILE;
}
- vfs_file = uk_malloc(a, sizeof(struct vfscore_file));
+ vfs_file = malloc(sizeof(struct vfscore_file));
if (unlikely(!vfs_file)) {
ret = -ENOMEM;
goto ERR_MALLOC_VFS_FILE;
ERR_ALLOC_DENTRY:
vput(vfs_vnode);
ERR_ALLOC_VNODE:
- uk_free(a, vfs_file);
+ free(vfs_file);
ERR_MALLOC_VFS_FILE:
uk_free(a, efd);
ERR_MALLOC_FILE: