summaryrefslogtreecommitdiff
path: root/nuttx/examples/nsh/nsh_fscmds.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-02-23 12:28:55 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-02-23 12:28:55 +0000
commit8360b5cb56e122a208d9a6bd86524c4ba76fb679 (patch)
tree6427e3e3872c84ba7ac654653d8510863595a137 /nuttx/examples/nsh/nsh_fscmds.c
parente59a6655733c50c3a49acf376492dee36c6cc0c0 (diff)
downloadnuttx-8360b5cb56e122a208d9a6bd86524c4ba76fb679.tar.gz
nuttx-8360b5cb56e122a208d9a6bd86524c4ba76fb679.tar.bz2
nuttx-8360b5cb56e122a208d9a6bd86524c4ba76fb679.zip
Fix potential memory leak
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3313 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/nsh/nsh_fscmds.c')
-rw-r--r--nuttx/examples/nsh/nsh_fscmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/examples/nsh/nsh_fscmds.c b/nuttx/examples/nsh/nsh_fscmds.c
index b5b118791..cdc4ac0cd 100644
--- a/nuttx/examples/nsh/nsh_fscmds.c
+++ b/nuttx/examples/nsh/nsh_fscmds.c
@@ -705,7 +705,7 @@ int cmd_losetup(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
if (badarg)
{
- return ERROR;
+ goto errout_with_paths;
}
/* If this is not a tear down operation, then additional command line