fix a pair of memory leaks

:Release Notes:
Fix coverity detected memory leaks

:Detailed Notes:
Fix coverity detected memory leaks

:Testing Performed:
MiniBAT

:QA Notes:

:Issues Addressed:
[GF-56156] Fix coverity issues in luna-prefs

Open-webOS-DCO-1.0-Signed-off-by: Eric Blade <eric.blade@lge.com>

Change-Id: I9a318c78a5f4f3a0e9a3d6878add435ced7338f4
Reviewed-on: https://g2g.palm.com/4339
Reviewed-by: DCO Verification
Tested-by: Eric Blade <eric.blade@lge.com>
Reviewed-by: Kwangsung Ha <kwangsung.ha@lge.com>
Reviewed-by: Eunwoo Lee <derek.lee@lge.com>
Reviewed-by: Pilju Mun <pilju.mun@lge.com>
Reviewed-by: Eric Blade <eric.blade@lge.com>