coverity issue#109258
[platform/core/messaging/msg-service.git] / vobject-engine / VMessage.c
index 814dae7..18c80a9 100755 (executable)
@@ -1032,6 +1032,9 @@ VTree* vmsg_decode(char *pMsgRaw)
                goto CATCH1;
        }
        VDATA_TRACE_END
+       VFREE(pTemp);
+       VFREE(pTmpParam);
+       VFREE(pVBody);
        return pVMsg;
 
 CATCH:
@@ -1042,7 +1045,6 @@ CATCH1:
        VFREE(pMsgRawTmp);
        VFREE(pTmpParam);
        VFREE(pVBody);
-       VFREE(pCurrent);
        vmsg_free_vtree_memory(pVMsg);
        VDATA_TRACE_END
        return NULL;