From f1ab77119a8791b22e1501ee3556124991cc6e63 Mon Sep 17 00:00:00 2001 From: Dongsun Lee Date: Tue, 25 Aug 2020 16:45:03 +0900 Subject: [PATCH] Fix coverity issue(RESOURCE_LEAK, CID=1147621) Change-Id: I48e6aa5ec11af0a7a8ff89643cd7726df5ecbfd3 Signed-off-by: Dongsun Lee --- tappsd/src/rights/DTapps2Rights.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.7.4