svace fixes
[platform/upstream/iotivity.git] / resource / csdk / security / src / psinterface.c
index c24f05a..baba287 100644 (file)
@@ -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;
     }