diff --git a/components/dfs/src/dfs.c b/components/dfs/src/dfs.c index 97e9ae5b220cd944552a7a70bb67e4fddd856a4f..51aa777484bfb33c80e3012249d358bae787bfcc 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 @@ -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; }