Merge pull request #46 from lioncash/leak
Fix a memory leak within vfs.c in kopen.
This commit is contained in:
commit
18251f66c1
@ -699,6 +699,7 @@ fs_node_t *kopen(char *filename, uint32_t flags) {
|
||||
|
||||
if (path_offset >= path+path_len) {
|
||||
free(path);
|
||||
free(node_ptr);
|
||||
return mount_point;
|
||||
}
|
||||
/* Set the active directory to the mountpoint */
|
||||
|
Loading…
Reference in New Issue
Block a user