From: Dongsun Lee Date: Tue, 25 Aug 2020 07:45:03 +0000 (+0900) Subject: Fix coverity issue(RESOURCE_LEAK, CID=1147621) X-Git-Tag: accepted/tizen/6.0/unified/20201030.115134^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=inline;h=f1ab77119a8791b22e1501ee3556124991cc6e63;p=platform%2Fcore%2Fsecurity%2Fdrm-service-core-tizen.git Fix coverity issue(RESOURCE_LEAK, CID=1147621) Change-Id: I48e6aa5ec11af0a7a8ff89643cd7726df5ecbfd3 Signed-off-by: Dongsun Lee --- diff --git a/tappsd/src/rights/DTapps2Rights.cpp b/tappsd/src/rights/DTapps2Rights.cpp index b358350..55403e0 100644 --- a/tappsd/src/rights/DTapps2Rights.cpp +++ b/tappsd/src/rights/DTapps2Rights.cpp @@ -367,6 +367,9 @@ Error_Exit: if (encr_cek) DTAPPS_FREE(encr_cek); + if (pDevKey) + DTappsFreeDeviceKey(&pDevKey); + return ret; }