From bd891f8dfaf8ccd0d90d385f50885f0e03f3ba48 Mon Sep 17 00:00:00 2001
From: wang--ge <wang__ge@126.com>
Date: Tue, 21 Mar 2023 16:58:07 +0800
Subject: [PATCH] fix illegal memory access

---
 ipmiseld/ipmiseld-cache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ipmiseld/ipmiseld-cache.c b/ipmiseld/ipmiseld-cache.c
index bad1d7a..317cb83 100644
--- a/ipmiseld/ipmiseld-cache.c
+++ b/ipmiseld/ipmiseld-cache.c
@@ -245,7 +245,7 @@ ipmiseld_sdr_cache_create_and_load (ipmiseld_host_data_t *host_data)
  cleanup:
   if (strlen (filename))
     ipmi_sdr_cache_delete (host_data->host_poll->sdr_ctx, filename);
-  ipmi_sdr_ctx_destroy (host_data->host_poll->sdr_ctx);
+  //ipmi_sdr_ctx_destroy (host_data->host_poll->sdr_ctx);
   return (-1);
 }
 
-- 
2.27.0

