[RuntimeDyld] Remove a memory-leak that was introduced in r243456. Thanks to Ben
[oota-llvm.git] / tools / yaml2obj / yaml2obj.cpp
index 375cd89849c302a52e0d577334a4c3f5a22586d2..af4d8689067240d3a65ce3fceb41ad03ddf0fe73 100644 (file)
@@ -62,7 +62,8 @@ static cl::opt<std::string> OutputFilename("o", cl::desc("Output filename"),
 
 typedef int (*ConvertFuncPtr)(yaml::Input & YIn, raw_ostream &Out);
 
-int convertYAML(yaml::Input & YIn, raw_ostream &Out, ConvertFuncPtr Convert) {
+static int convertYAML(yaml::Input &YIn, raw_ostream &Out,
+                       ConvertFuncPtr Convert) {
   unsigned CurDocNum = 0;
   do {
     if (++CurDocNum == DocNum)