prelude-correlator/master: Explicitly close the context file descriptor on save.

[email protected] Thu, 9 Jul 2009 17:57:28 +0200 (CEST)
Newsgroups gmane.comp.security.ids.prelude.cvs
Message-ID <[email protected]>
commit b283c52df126a98893458655bc493609c2692628
Author: Yoann Vandoorselaere <[email protected]>
Date:   Mon Jul 6 11:57:38 2009 +0200

    Explicitly close the context file descriptor on save.


========================================

 PreludeCorrelator/context.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

========================================

diff --git a/PreludeCorrelator/context.py b/PreludeCorrelator/context.py
index 0c91993..788e164 100644
--- a/PreludeCorrelator/context.py
+++ b/PreludeCorrelator/context.py
@@ -132,6 +132,7 @@ def search(name):
 def save():
         fd = open(siteconfig.lib_dir + "/context.dat", "w")
         pickle.dump(_CONTEXT_TABLE, fd)
+        fd.close()
 
 def load():
         if os.path.exists(siteconfig.lib_dir + "/context.dat"):
_______________________________________________
Prelude-cvslog site list
[email protected]
http://lists.prelude-ids.org/mailman/listinfo/prelude-cvslog