Fix coverity issue(RESOURCE_LEAK, CID=1147621) 48/242248/2 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.115134 accepted/tizen/6.0/unified/hotfix/20201103.002724 accepted/tizen/unified/20200826.133038 submit/tizen/20200825.103914 submit/tizen_6.0/20201029.205104 submit/tizen_6.0_hotfix/20201102.192504 submit/tizen_6.0_hotfix/20201103.114804 tizen_6.0.m2_release
authorDongsun Lee <ds73.lee@samsung.com>
Tue, 25 Aug 2020 07:45:03 +0000 (16:45 +0900)
committerDongsun Lee <ds73.lee@samsung.com>
Tue, 25 Aug 2020 10:24:41 +0000 (19:24 +0900)
Change-Id: I48e6aa5ec11af0a7a8ff89643cd7726df5ecbfd3
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
tappsd/src/rights/DTapps2Rights.cpp

index b358350..55403e0 100644 (file)
@@ -367,6 +367,9 @@ Error_Exit:
        if (encr_cek)
                DTAPPS_FREE(encr_cek);
 
+       if (pDevKey)
+               DTappsFreeDeviceKey(&pDevKey);
+
        return ret;
 }