fix memory leak and uninitialized local variable issues 16/119216/1
authorYoungbok Shin <youngb.shin@samsung.com>
Thu, 16 Mar 2017 01:44:02 +0000 (10:44 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Thu, 16 Mar 2017 04:44:12 +0000 (21:44 -0700)
commit6bdccca8c4bb0936d1c8a8b5fb0da140c7cbbf09
treea68636a06a4671c08bfad004dc3bcca7b3d4b4fa
parent9b6ba09c039442b9a1c1c22c0065642774d832fb
fix memory leak and uninitialized local variable issues

- Memory leak from FontConfig Pattern pointer.
- Uninitialized local variable can be problem
  when it checks address for free and file close.

Change-Id: I5a23fbf2fa484a70cceaab9eb6cbda5d86cb02f1
(cherry picked from commit a48fac2edbac930a86955ad2ae0f169e22672c7f)
pkgmgr_font/src/font_service_register.c