change the order of setting root element about xmlDoc 64/307664/1
authordyamy-lee <dyamy.lee@samsung.com>
Mon, 11 Mar 2024 07:27:48 +0000 (16:27 +0900)
committerTizen AI <ai.tzn.sec@samsung.com>
Tue, 12 Mar 2024 06:41:21 +0000 (15:41 +0900)
commit4c793dad4b8ee41aad2472004c50e4dbbb88e559
tree413cb2ddbbb1476585317740d3186f187b92f781
parent0c3e587feb13330de4ac28c6fda6c9017e9c4b46
change the order of setting root element about xmlDoc

When calling 'xmlDocSetRootElement', it removes 'root' in this inside logic.
So, the 'root' which allocated from 'xmlNewNode' has possiblity of free in it.
Therefore, this patch changed the order of calling this function after calling 'xmlDocSetRootElement'.

Change-Id: I64c3dc5154bef464586c4a81df99961965259cbf
engine-parser/src/vc-engine-parser.c