diff --git a/3m.cpp b/3m.cpp
index bb8fa69..5985fdd 100644
--- a/3m.cpp
+++ b/3m.cpp
@@ -102,6 +102,7 @@ return 1;
 *repoinfo = line;
 action = "parse";
 } else if(action == "end") {
+conf.close();
 return 0;	
 }
 }