src/log/logd/lgs_filehdl.cc |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)


The cause of issue is free cfg_namelist while struct dirent **cfg_namelist 
unallocated

diff --git a/src/log/logd/lgs_filehdl.cc b/src/log/logd/lgs_filehdl.cc
--- a/src/log/logd/lgs_filehdl.cc
+++ b/src/log/logd/lgs_filehdl.cc
@@ -797,14 +797,14 @@ int get_number_of_cfg_files_hdl(void *in
       } else {
         rc = (cfg_files - failed);
       }
-    } 
-  }
+    }
 
 done_cfg_free:
-  /* Free scandir allocated memory */
-  for (i = 0; i < cfg_files; i++)
-    free(cfg_namelist[i]);
-  free(cfg_namelist);
+    /* Free scandir allocated memory */
+    for (i = 0; i < cfg_files; i++)
+      free(cfg_namelist[i]);
+    free(cfg_namelist);
+  }
 
 done_log_free:
   /* Free scandir allocated memory */

------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to