fill_packs_from_git: fix leaking of temporary files
authorOlev Kartau <olev.kartau@intel.com>
Thu, 10 Jul 2014 14:15:32 +0000 (17:15 +0300)
committerEd Bartosh <eduard.bartosh@intel.com>
Sun, 10 Aug 2014 08:26:46 +0000 (11:26 +0300)
commit5fbf969c92ad6fac2e75b3a80ef6f30b4a565b44
treefe08312c295721d8dc8d4fef407f94eba9abe367
parentd40066b96215d83ca3952fc0792ab94197d79186
fill_packs_from_git: fix leaking of temporary files

In this function, all opened temporary files were left
undeleted and became garbage in /tmp.
CLEANUP is not valid flag for tempfile().
For tempfile, the flag would be UNLINK, but it can't be used
when OPEN is set to zero (which is the case).
Perl will not automatically delete such files,
so we have to close and delete them.

Change-Id: Id05ffa5c41f9d7522faa370fb8816ebb64740be6
depanneur