add some logs.

This commit is contained in:
hjxilinx 2019-12-20 14:33:53 +08:00
parent 568f874d12
commit f66963ca7a
1 changed files with 3 additions and 2 deletions

View File

@ -97,10 +97,11 @@ void tExtMemBufferDestroy(tExtMemBuffer **pMemBuffer) {
// close temp file
if ((*pMemBuffer)->dataFile != 0) {
int32_t ret = fclose((*pMemBuffer)->dataFile);
if (ret != 0) {
if (fclose((*pMemBuffer)->dataFile) != 0) {
pError("failed to close file:%s, reason:%s", (*pMemBuffer)->dataFilePath, strerror(errno));
}
pTrace("remove temp file:%s for external buffer", (*pMemBuffer)->dataFilePath);
unlink((*pMemBuffer)->dataFilePath);
}