Fix for memory leak, added close of file descriptor.
Fix for memory leak, added close of file descriptor.

Change-Id: Iffc83788a2d6118e91cc5d0a075f5884b5086bd0

01org/intel-cmt-cat,01org/intel-cmt-cat,01org/intel-cmt-cat