Coverity issues bug fix

:Release Notes:
Coverity issues bug fix

:Detailed Notes:
Dynamically allocated variable outMsg freed.
open file descriptors closed appropriately.

:Testing Performed:
Compiled locally and tested on official build.

:QA Notes:

:Issues Addressed:
[GF-37397] pmlogdaemon: coverity issues

Open-webOS-DCO-1.0-Signed-off-by: ashish.sadre <ashish.sadre@lge.com>

Change-Id: I3fb4e584c1f34a503f3799c20e93e1e25bb28dc2
Reviewed-on: https://g2g.palm.com/3382
Reviewed-by: Build Verification
Reviewed-by: Premalatha MVS <premalatha.mvs@lge.com>
Reviewed-by: Ashish Sadre <ashish.sadre@lge.com>
Tested-by: Ashish Sadre <ashish.sadre@lge.com>
Reviewed-by: Keith Derrick <keith.derrick@lge.com>