Parcourir la source

[components][dfs_v2]: Fix dfs_devfs_open memory leak

wycwyhwyq il y a 7 mois
Parent
commit
53bd56ccf9
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      components/dfs/dfs_v2/filesystems/devfs/devfs.c

+ 1 - 0
components/dfs/dfs_v2/filesystems/devfs/devfs.c

@@ -77,6 +77,7 @@ static int dfs_devfs_open(struct dfs_file *file)
                 }
             }
         }
+        rt_free(device_name);
     }
 
     return ret;