projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
svace fixes
[platform/upstream/iotivity.git]
/
resource
/
csdk
/
security
/
src
/
psinterface.c
diff --git
a/resource/csdk/security/src/psinterface.c
b/resource/csdk/security/src/psinterface.c
index
c24f05a
..
baba287
100644
(file)
--- a/
resource/csdk/security/src/psinterface.c
+++ b/
resource/csdk/security/src/psinterface.c
@@
-213,6
+213,7
@@
static OCStackResult getPlaintextFromDB(const OCPersistentStorage *ps, uint8_t *
fp = ps->open(SVR_DB_DAT_FILE_NAME, "rb");
if (NULL == fp)
{
+ OICFree(plaintext);
OIC_LOG(ERROR, TAG, "ps->open() Failed");
return OC_STACK_ERROR;
}