From b1fd6647b4b77632219f6a2dcd3ae142e9e0a182 Mon Sep 17 00:00:00 2001 From: likailong Date: Thu, 24 Mar 2022 11:41:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=86=85=E5=AD=98?= =?UTF-8?q?=E6=9C=AA=E9=87=8A=E6=94=BE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: likailong --- samgr_endpoint/source/default_client_rpc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/samgr_endpoint/source/default_client_rpc.c b/samgr_endpoint/source/default_client_rpc.c index a245f2e..ce5a2cb 100755 --- a/samgr_endpoint/source/default_client_rpc.c +++ b/samgr_endpoint/source/default_client_rpc.c @@ -233,6 +233,7 @@ static int ProxyInvoke(IClientProxy *proxy, int funcId, IpcIo *request, IOwner o WriteInt32(&requestWrapper, (int32_t)header->saId); if (!IpcIoAppend(&requestWrapper, request)) { HILOG_ERROR(HILOG_MODULE_SAMGR, "ipc io append fail\n"); + FreeBuffer(tmpData2); return EC_INVALID; } int ret = SendRequest(header->target, funcId, &requestWrapper, &reply, flag, (uintptr_t *)&replyBuf); -- Gitee