From 604dff2dc271f456558fa62e6742d37531bae993 Mon Sep 17 00:00:00 2001 From: "jaekuk, lee" Date: Thu, 19 May 2016 09:58:42 +0900 Subject: [PATCH] Fix memory leak issue Change-Id: Ic10461bd43188bbc08d53e1280dada3e04ff203e Signed-off-by: jaekuk, lee --- provider/download-provider-client-manager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 provider/download-provider-client-manager.c diff --git a/provider/download-provider-client-manager.c b/provider/download-provider-client-manager.c old mode 100644 new mode 100755 index 9f89fff..63691e2 --- a/provider/download-provider-client-manager.c +++ b/provider/download-provider-client-manager.c @@ -392,7 +392,7 @@ static int __dp_client_new(int clientfd, dp_client_slots_fmt *clients, int errorcode = DP_ERROR_NONE; int i = 0; int pkg_len = 0; - char *pkgname[256] = { 0 }; + char pkgname[256] = { 0, }; // getting the package name via pid if (aul_app_get_appid_bypid_for_uid(credential.pid, pkgname, 256, credential.uid) != AUL_R_OK) @@ -517,7 +517,7 @@ static int __dp_client_new(int clientfd, dp_client_slots_fmt *clients, CLIENT_MUTEX_UNLOCK(&clients[i].mutex); if (errorcode != DP_ERROR_NONE) dp_mutex_destroy(&clients[i].mutex); - free(pkgname); +// free(pkgname); return errorcode; } } -- 2.7.4