CID - 110313, 109044, 110513, 106918,
106271, 105398, 107680, 105227, 110112
Change-Id: I665244c4adc8f2da8d1cf87d1a4bb8be5416dff3
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
\r
if (!openDB()) {\r
DM_LOGE("NULL Check:historyDB");\r
+ free(command);\r
return ;\r
}\r
\r
\r
if (!openDB()) {\r
DM_LOGE("NULL Check:historyDB");\r
+ free(command);\r
return ;\r
}\r
\r
\r
if (!openDB()) {\r
DM_LOGE("NULL Check:historyDB");\r
+ free(command);\r
return ;\r
}\r
\r
\r
if (!openDB()) {\r
DM_LOGE("NULL Check:historyDB");\r
+ free(command);\r
return ;\r
}\r
\r
if (!m_registeredFilePath.empty())
m_registeredFilePath.clear();
#ifdef _ENABLE_OMA_DOWNLOAD
- if (m_oma_item.get())
- m_oma_item.release();
+ if (m_oma_item.get()) {
+ OmaItem *manual_pointer = m_oma_item.release();
+ delete manual_pointer;
+ }
#endif
return start(id);
}
unitBytes = unitBytes >> 10;
}
- unitBytes = 1 << (10 * unit);
+ unitBytes = (unsigned long long)1 << (10 * unit);
doubleTypeBytes = ((double)bytes / (double)(unitBytes));
// FIXME following code should be broken into another function, but leave it now to save function call time.s
char str[64] = {0};
DM_LOGE("Fail to set content [%d]", err);
freeNotiData(m_notiHandle);
m_notiHandle = NULL;
+ freeNotiData(notiHandle);
return;
}
}
for (unit = 0; (unitBytes > 1024 && unit < 4); unit++) {
unitBytes = unitBytes >> 10;
}
- unitBytes = 1 << (10 * unit);
+ unitBytes = (unsigned long long)1 << (10 * unit);
if (unit > 3)
unit = 3;
unitBytes = unitBytes >> 10;
}
- unitBytes = 1 << (10*unit);
+ unitBytes = (unsigned long long)1 << (10 * unit);
doubleTypeBytes = ((double)bytes / (double)(unitBytes));
// FIXME following code should be broken into another function, but leave it now to save function call time.s
char str[64] = {0};