diff options
| author | qiuyiuestc <[email protected]> | 2009-12-13 16:07:36 +0000 |
|---|---|---|
| committer | qiuyiuestc <[email protected]> | 2009-12-13 16:07:36 +0000 |
| commit | bf8bb9db6adfadc8102952b7b30565c54f6b0b4d (patch) | |
| tree | f1fc684e975760bf08f5fd8889a411cc06021bdc /filesystem | |
| parent | bd533b374307251592482c365d18f14449034cf1 (diff) | |
Fix lm3s ftp upload problem
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@199 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'filesystem')
| -rw-r--r-- | filesystem/dfs/filesystems/efsl/src/base/efs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/filesystem/dfs/filesystems/efsl/src/base/efs.c b/filesystem/dfs/filesystems/efsl/src/base/efs.c index edb414b22c..49fec4e806 100644 --- a/filesystem/dfs/filesystems/efsl/src/base/efs.c +++ b/filesystem/dfs/filesystems/efsl/src/base/efs.c @@ -165,7 +165,8 @@ int efs_open(struct dfs_fd* file) efsdir = (DirList*)rt_malloc(sizeof(DirList)); if(efsdir == RT_NULL) { - dfs_log(DFS_DEBUG_INFO, ("memory alloc failed")); + dfs_log(DFS_DEBUG_ERROR, ("memory alloc failed")); + rt_free(efsdir); return -DFS_STATUS_ENOMEM; } @@ -186,7 +187,7 @@ int efs_open(struct dfs_fd* file) efsfile = (File *)rt_malloc(sizeof(File)); if (efsfile == RT_NULL) { - dfs_log(DFS_DEBUG_INFO, ("memory alloc failed")); + dfs_log(DFS_DEBUG_ERROR, ("memory alloc failed")); return -DFS_STATUS_ENOMEM; } |
