From 72cd02720e93be52738962a298258eba94f343f6 Mon Sep 17 00:00:00 2001 From: "jc815.lee" Date: Mon, 6 May 2013 10:53:31 +0900 Subject: fix prevent issue. resource leak Signed-off-by: jc815.lee --- server/src/ss_server_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/ss_server_main.c b/server/src/ss_server_main.c index 33cedf7..6344116 100644 --- a/server/src/ss_server_main.c +++ b/server/src/ss_server_main.c @@ -238,6 +238,7 @@ int check_privilege_by_sockfd(int sockfd, const char* object, const char* access { SLOGD("defined smack label : %s", client_process_smack_label); strncpy(object, client_process_smack_label, strlen(client_process_smack_label)); + free(client_process_smack_label); } else { -- cgit v1.2.3