Browse Source

[DM/BLOCK] Fixup DFS partition memory leak

Signed-off-by: GuEe-GUI <2991707448@qq.com>
GuEe-GUI 4 months ago
parent
commit
825e87d2cf
1 changed files with 2 additions and 0 deletions
  1. 2 0
      components/drivers/block/partitions/dfs.c

+ 2 - 0
components/drivers/block/partitions/dfs.c

@@ -49,5 +49,7 @@ rt_err_t dfs_partition(struct rt_blk_disk *disk)
         }
     }
 
+    rt_free(sector);
+
     return RT_EOK;
 }