From dd1b62ddc587b8a87125cd654deeb2b7925e9e61 Mon Sep 17 00:00:00 2001 From: huangxiaolinabc123 Date: Fri, 31 Mar 2023 03:10:46 +0000 Subject: [PATCH] fixed b90928e from https://gitee.com/shufewhx/distributedschedule_samgr_lite/pulls/4 "modify code" Signed-off-by: huangxiaolinabc123 --- samgr_endpoint/source/default_client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samgr_endpoint/source/default_client.c b/samgr_endpoint/source/default_client.c index b624227..e8d72e0 100755 --- a/samgr_endpoint/source/default_client.c +++ b/samgr_endpoint/source/default_client.c @@ -245,6 +245,9 @@ static SvcIdentity QueryIdentity(const IpcContext *context, const char *service, BinderAcquire(svc->ipcContext, svc->handle); #endif target = *svc; +#ifdef __LINUX__ + free(svc); +#endif } } if (ret == EC_PERMISSION) { -- Gitee