nuttx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-nuttx] Ouss4 commented on a change in pull request #647: Check return from nxsem_wait_initialize()
Date Sun, 29 Mar 2020 20:29:53 GMT
Ouss4 commented on a change in pull request #647: Check return from nxsem_wait_initialize()
URL: https://github.com/apache/incubator-nuttx/pull/647#discussion_r399849196
 
 

 ##########
 File path: fs/tmpfs/fs_tmpfs.c
 ##########
 @@ -2451,7 +2528,11 @@ static int tmpfs_rename(FAR struct inode *mountpt, FAR const char
*oldrelpath,
 
   /* Get exclusive access to the file system */
 
-  tmpfs_lock(fs);
+  ret = tmpfs_lock(fs);
+  if (ret < 0)
+    {
+      return ret;
 
 Review comment:
   `copy` allocated by strdup isn't freed.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message