From 73aad3d5ee3a7ca5b5a310bff509f5214523c17c Mon Sep 17 00:00:00 2001 From: the_big_blue_devil Date: Mon, 28 Apr 2025 22:56:52 +0800 Subject: [PATCH] Signed-off-by:hanqiaosheng --- services/fs_manager/partitions.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/services/fs_manager/partitions.cpp b/services/fs_manager/partitions.cpp index 102550c2..6d758ad2 100644 --- a/services/fs_manager/partitions.cpp +++ b/services/fs_manager/partitions.cpp @@ -317,6 +317,7 @@ int DiskAlloc(const std::string &path) disk = NewBlockDisk(*dev, GPT); if (disk == nullptr) { + free(dev); LOG(ERROR) << "NewBlockDevice nullptr "; return 0; } -- Gitee