From: Tomasz Swierczek Date: Mon, 13 Jan 2025 08:48:41 +0000 (+0100) Subject: Fix memory leak X-Git-Tag: accepted/tizen/8.0/unified/20250114.155531^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_unified;p=platform%2Fcore%2Fsecurity%2Fdrm-service-core-tizen.git Fix memory leak Change-Id: I85f00e33223b8ec4e0f777c256fdf48b5f4a9d99 --- diff --git a/tadcore/TADCInterface/TADC_IF.cpp b/tadcore/TADCInterface/TADC_IF.cpp index 6760bdc..fb72e79 100644 --- a/tadcore/TADCInterface/TADC_IF.cpp +++ b/tadcore/TADCInterface/TADC_IF.cpp @@ -161,6 +161,8 @@ int TADC_IF_GetDHKey_K(T_DH_INFO *t_dhinfo) //4. Compute DH Session Key if ((i = DH_compute_key((BYTE *)tempbuf, pPubKey, pDH)) < 0) { DRM_TAPPS_EXCEPTION("DH_compute_key() error! \n"); + DH_free(pDH); + BN_free(pPubKey); return -1; }