From 48ee20d3df41afd9f3102bcc880b4ae0d4849559 Mon Sep 17 00:00:00 2001
From: Murai Takashi <tmurai01@gmail.com>
Date: Thu, 1 Aug 2013 20:36:56 +0900
Subject: [PATCH] Fix memory leak
---
src/system/kernel/fs/vfs.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/system/kernel/fs/vfs.cpp b/src/system/kernel/fs/vfs.cpp
index 114d6ab..47e682b 100644
a
|
b
|
put_mount(struct fs_mount* mount)
|
723 | 723 | could not open the module. |
724 | 724 | */ |
725 | 725 | static file_system_module_info* |
726 | | get_file_system(const char* fsName) |
| 726 | get_file_system(char* fsName) |
727 | 727 | { |
728 | 728 | char name[B_FILE_NAME_LENGTH]; |
729 | 729 | if (strncmp(fsName, "file_systems/", strlen("file_systems/"))) { |
730 | 730 | // construct module name if we didn't get one |
731 | 731 | // (we currently support only one API) |
732 | 732 | snprintf(name, sizeof(name), "file_systems/%s/v1", fsName); |
| 733 | free(fsName); |
733 | 734 | fsName = NULL; |
734 | 735 | } |
735 | 736 | |