From 89e4925a4677b2e82ab8637b9d0f160646eb3c67 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 23 Feb 2011 12:28:55 +0000 Subject: [PATCH] Fix potential memory leak git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3313 42af7a65-404d-4744-a932-0658087f49c3 --- examples/nsh/nsh_fscmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/nsh/nsh_fscmds.c b/examples/nsh/nsh_fscmds.c index b5b11879142..cdc4ac0cd15 100644 --- a/examples/nsh/nsh_fscmds.c +++ b/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