Explorar el Código

[DM/BLOCK] Fixup DFS partition memory leak

Signed-off-by: GuEe-GUI <2991707448@qq.com>
GuEe-GUI hace 7 meses
padre
commit
825e87d2cf
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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;
 }