[gnome-ostree] task: Add missing call to close() on directory enumerator



commit c2e61b3d8c05a7d6e80bbdedb6c60444d76c246f
Author: Colin Walters <walters verbum org>
Date:   Tue Feb 12 19:58:26 2013 -0500

    task: Add missing call to close() on directory enumerator
    
    Without this we leak file descriptors which gets bad.

 src/ostbuild/js/task.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/ostbuild/js/task.js b/src/ostbuild/js/task.js
index 73d94b0..7288a08 100644
--- a/src/ostbuild/js/task.js
+++ b/src/ostbuild/js/task.js
@@ -238,6 +238,7 @@ const TaskDef = new Lang.Class({
 		continue;
 	    results.push(name);
 	}
+	e.close(cancellable);
 	results.sort(BuildUtil.compareVersions);
 	return results;
     },


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