From: Inkyun Kil Date: Tue, 24 Nov 2020 02:36:48 +0000 (+0900) Subject: Fix static analysis X-Git-Tag: accepted/tizen/6.0/unified/20201125.104952~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae93a8ff0ac5326924ac343b283ba0bef76fc733;p=platform%2Fcore%2Fappfw%2Fmessage-port.git Fix static analysis - memory leak Change-Id: I01f2fe341b93c197e4c7fd641b19bc34de20f67b Signed-off-by: Inkyun Kil --- diff --git a/src/message_port_remote.c b/src/message_port_remote.c index 17d61c6..a872890 100644 --- a/src/message_port_remote.c +++ b/src/message_port_remote.c @@ -818,6 +818,7 @@ static void __close_socket(GDBusMethodInvocation *invocation) returned_fds = g_unix_fd_list_steal_fds(fd_list, &fd_len); if (returned_fds != NULL) { close(returned_fds[0]); + g_free(returned_fds); } } }