sdparm: Add memory leak patch

:Release Notes:
Fix memory leak

:Detailed Notes:
Fix resource leaks and control flow issues

:Testing Performed:
miniBAT

:QA Notes:

:Issues Addressed:
[GF-53456] CCC: sdparm=r2 (Add memory leak patch)
[GF-51922] Fix bugs found by Coverity in sdparm component

Open-webOS-DCO-1.0-Signed-off-by: jaesung5.lee <jaesung5.lee@lge.com>

Change-Id: I711c41560c11917f70b8aa14f6caa2c4e4ebf904
Reviewed-on: https://g2g.palm.com/4074
Reviewed-by: DCO Verification
Build: Jaesung Lee <jaesung5.lee@lge.com>
Reviewed-by: Martin Jansa <Martin.Jansa@lge.com>
Reviewed-by: Jaesung Lee <jaesung5.lee@lge.com>
Tested-by: Jaesung Lee <jaesung5.lee@lge.com>
Reviewed-by: Build Verification
Reviewed-by: Earnest Son <earnest.son@lge.com>
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Reviewed-by: Joungyong Choi <joungyong.choi@lge.com>
Tested-by: Joungyong Choi <joungyong.choi@lge.com>