Memory leak issue fixed 48/243148/1 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.124128 accepted/tizen/6.0/unified/hotfix/20201103.051242 accepted/tizen/unified/20200904.154055 submit/tizen/20200904.035917 submit/tizen_6.0/20201029.205101 submit/tizen_6.0_hotfix/20201102.192501 submit/tizen_6.0_hotfix/20201103.114801 tizen_6.0.m2_release
authorLohit Agarwalla <l.agarwalla@samsung.com>
Thu, 3 Sep 2020 10:04:31 +0000 (15:34 +0530)
committerLohit Agarwalla <l.agarwalla@samsung.com>
Thu, 3 Sep 2020 10:04:31 +0000 (15:34 +0530)
Change-Id: Id333090df8246d4f80d256fad15d6a1cb2516ee7
Signed-off-by: Lohit Agarwalla <l.agarwalla@samsung.com>
common/uafv1tlvutil/src/RegReqTlvEncoder.cpp

index b22a342..25bc866 100755 (executable)
@@ -151,6 +151,8 @@ RegAssertionTlvEncoder::decode(const unsigned char *rawData)
                        if (getRegReqInfo->khAccessToken == NULL) {
                                SAFE_DELETE(root->val);
                                SAFE_DELETE(root);
+                               SAFE_DELETE(child->val);
+                               SAFE_DELETE(child);
                                SAFE_DELETE(getRegReqInfo);
                                return NULL;
                        }