From 3d8258777c2265ea00c9fe13a11d37d0b3320e4c Mon Sep 17 00:00:00 2001
From: zhangxiaoyu <zhangxiaoyu58@huawei.com>
Date: Fri, 5 Aug 2022 14:37:38 +0800
Subject: [PATCH 09/21] set dup_option null after free

Signed-off-by: zhangxiaoyu <zhangxiaoyu58@huawei.com>
---
 .../oci/storage/layer_store/graphdriver/devmapper/deviceset.c    | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/daemon/modules/image/oci/storage/layer_store/graphdriver/devmapper/deviceset.c b/src/daemon/modules/image/oci/storage/layer_store/graphdriver/devmapper/deviceset.c
index a0e749dd..10c7fafd 100644
--- a/src/daemon/modules/image/oci/storage/layer_store/graphdriver/devmapper/deviceset.c
+++ b/src/daemon/modules/image/oci/storage/layer_store/graphdriver/devmapper/deviceset.c
@@ -239,6 +239,7 @@ static int devmapper_parse_options(struct device_set *devset, const char **optio
         }
 
         free(dup_option);
+        dup_option = NULL;
     }
 
 out:
-- 
2.25.1

