Change-Id: Ic31fc6bd4f4fa49e6ffac2bb165238f1c41c5293
Signed-off-by: Wonnam Jang <wn.jang@samsung.com>
if (NULL == temp_client) {
SLOG(LOG_ERROR, vc_info_tag(), "[ERROR] Memory alloc error!!");
+ xmlFreeDoc(doc);
return -1;
}
int ret = xmlSaveFormatFile(VC_RUNTIME_INFO_DEMANDABLE_LIST, doc, 1);
SLOG(LOG_DEBUG, vc_info_tag(), "Save demandable file info : %d", ret);
+ xmlFreeDoc(doc);
return 0;
}
if (NULL == client) {
SLOG(LOG_ERROR, vc_info_tag(), "[ERROR] Memory alloc error!!");
+ xmlFreeDoc(doc);
return -1;
}