projects
/
platform
/
core
/
messaging
/
msg-service.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
RSA sync with private
[platform/core/messaging/msg-service.git]
/
utils
/
MsgUtilFile.cpp
diff --git
a/utils/MsgUtilFile.cpp
b/utils/MsgUtilFile.cpp
index
499ac32
..
bf2fdc2
100755
(executable)
--- a/
utils/MsgUtilFile.cpp
+++ b/
utils/MsgUtilFile.cpp
@@
-717,6
+717,7
@@
int MsgRmRf(char *pDirPath)
if (path == NULL) {
MSG_DEBUG("path is NULL");
+ closedir(dir);
return -1;
}
@@
-824,6
+825,8
@@
unsigned int MsgDu(const char *pDirPath)
if (fileSize < 0) {
MSG_FATAL("error MsgGetFileSize");
+ closedir(dir);
+ free(path);
return fileSize;
}