debug-collector: Fix unclosed file in bb file

- The intent behind this commit is to fix the unclosed file in the
  phosphor-debug-collector_git.bb file.

- When using `bitbake phosphor-debug-collector` to compile it, the
  warning message is: ResourceWarning: unclosed file
  <_io.TextIOWrapper name='phosphor-debug-collector/tools/dreport.d/plugins.d/hostlogger'
  mode='r' encoding='UTF-8'> install_dreport_user_script(srcname, d)

Tested: built phosphor-debug-collector successfully and worked.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: Id95b4a6369571db876acee0ed90953cd3874fff1
diff --git a/meta-phosphor/recipes-phosphor/dump/phosphor-debug-collector_git.bb b/meta-phosphor/recipes-phosphor/dump/phosphor-debug-collector_git.bb
index 9854f05..374d32a 100644
--- a/meta-phosphor/recipes-phosphor/dump/phosphor-debug-collector_git.bb
+++ b/meta-phosphor/recipes-phosphor/dump/phosphor-debug-collector_git.bb
@@ -161,6 +161,7 @@
             linkname = "E" + priority + script
             destlink = os.path.join(destdir, linkname)
             os.symlink(srclink, destlink)
+    file.close()
 
 #Make the links for all the plugins
 python install_dreport_user_scripts() {