diff options
| author | Bernard Xiong <[email protected]> | 2017-12-11 19:22:47 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2017-12-11 19:22:47 +0800 |
| commit | 5ec1046ca9dd63078a154401553d96aa8ae1933f (patch) | |
| tree | 57e86de318d279bc5dc194ebee20d9972a702c70 | |
| parent | 7515fb9d83c4673f5b1f679b7f4febf02efed9d5 (diff) | |
[DFS] fix the free issue in fd_is_open
| -rw-r--r-- | components/dfs/src/dfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/dfs/src/dfs.c b/components/dfs/src/dfs.c index 97e9ae5b22..51aa777484 100644 --- a/components/dfs/src/dfs.c +++ b/components/dfs/src/dfs.c @@ -20,6 +20,7 @@ * Change Logs: * Date Author Notes * 2005-02-22 Bernard The first version. + * 2017-12-11 Bernard Use rt_free to instead of free in fd_is_open(). */ #include <dfs.h> @@ -219,7 +220,7 @@ int fd_is_open(const char *pathname) if (fs == NULL) { /* can't find mounted file system */ - free(fullpath); + rt_free(fullpath); return -1; } |
