mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-07 22:25:12 +00:00
fix reversed in/out file closing when an error occurs. From Ken Pettit
This commit is contained in:
parent
c40e173036
commit
79169c711f
1 changed files with 2 additions and 2 deletions
|
|
@ -621,10 +621,10 @@ int cmd_dd(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
|||
ret = OK;
|
||||
|
||||
errout_with_outf:
|
||||
DD_INCLOSE(&dd);
|
||||
DD_OUTCLOSE(&dd);
|
||||
|
||||
errout_with_inf:
|
||||
DD_OUTCLOSE(&dd);
|
||||
DD_INCLOSE(&dd);
|
||||
free(dd.buffer);
|
||||
|
||||
errout_with_paths:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue