jingfei195887 commented on code in PR #3130:
URL: https://github.com/apache/nuttx-apps/pull/3130#discussion_r2234827297


##########
examples/mtdpart/mtdpart_main.c:
##########
@@ -317,8 +294,9 @@ int main(int argc, FAR char *argv[])
           if (nbytes < 0)
             {
               printf("ERROR: write to /dev/mtd0 failed: %d\n", errno);
-              fflush(stdout);
-              exit(9);
+              close(fd);

Review Comment:
   done. close(fd) is done in the label err_fd



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to