Fix memory leak 62/244862/2
authorIlho Kim <ilho159.kim@samsung.com>
Fri, 25 Sep 2020 07:46:55 +0000 (16:46 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Fri, 25 Sep 2020 09:50:54 +0000 (18:50 +0900)
commit467543bd672dca14cb47f5e6ac96f323a3b67e5e
treebe27da7196514eb268a18ebde9c4f16488031164
parent1f9a8581287b59a6441e1578afc0939364c4c29b
Fix memory leak

The value created by LoadXmlDocument should be freed using xmlFreeDoc
member variables wgt_doc_ and tpk_doc_ are used in function process()
so remove that from member variables and that will be freed using unique_ptr

Change-Id: I477a1e2677f30773efaacb058bde1a5c56b688d0
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
src/hybrid/step/pkgmgr/step_merge_xml.cc
src/hybrid/step/pkgmgr/step_merge_xml.h