From b5b767f96828b9eeb6bc4ccf3740a036ff41c0b6 Mon Sep 17 00:00:00 2001
From: Christopher Haine <chaine@hpe.com>
Date: Mon, 29 Aug 2022 06:24:07 -0500
Subject: [PATCH] fix dispose/reuse leak

---
 maestro/cdo.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/maestro/cdo.c b/maestro/cdo.c
index cb413bb2..dcc5a2c8 100644
--- a/maestro/cdo.c
+++ b/maestro/cdo.c
@@ -528,10 +528,6 @@ mstro_cdo_declare_propagate(const char *name,
     }
   }
 
- /* mamba array and raw pointer */
-  (*result)->mamba_array = NULL;
-  (*result)->raw_ptr = NULL;
-
   return MSTRO_OK;
 }
 
@@ -571,6 +567,10 @@ mstro_cdo_declare_core(const char *name,
   if (s != MSTRO_OK)
     return s;
 
+ /* mamba array and raw pointer */
+  (*result)->mamba_array = NULL;
+  (*result)->raw_ptr = NULL;
+
   /* Ensuire default attributes */
   s = mstro_cdo_attribute_set_default(*result);
   if (s != MSTRO_OK)
-- 
GitLab