Browse Source

[components][dfs_v2]: Fix dfs_devfs_open memory leak

wycwyhwyq 3 months ago
parent
commit
53bd56ccf9
1 changed files with 1 additions and 0 deletions
  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;
     return ret;