[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser/tor-browser-31.6.0esr-4.5-1] Bug 15857: Fix file descriptor leak in updater.



commit a8348a29adac38d64625fce35baba7684fef3fcd
Author: Mike Perry <mikeperry-git@xxxxxxxxxxxxxx>
Date:   Wed May 6 20:11:40 2015 -0700

    Bug 15857: Fix file descriptor leak in updater.
    
    Corresponds to Mozilla bug
    https://bugzilla.mozilla.org/show_bug.cgi?id=1159826.
---
 toolkit/mozapps/update/updater/updater.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/toolkit/mozapps/update/updater/updater.cpp b/toolkit/mozapps/update/updater/updater.cpp
index 3ba92b3..89f12ec 100644
--- a/toolkit/mozapps/update/updater/updater.cpp
+++ b/toolkit/mozapps/update/updater/updater.cpp
@@ -799,7 +799,7 @@ static int ensure_copy_recursive(const NS_tchar *path, const NS_tchar *dest,
       }
     }
   }
-
+  NS_tclosedir(dir);
   return rv;
 }
 

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits